{ "cells": [ { "cell_type": "code", "execution_count": 7, "metadata": { "id": "kaayLGB4AyPP" }, "outputs": [], "source": [ "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", "\n", "df = pd.read_csv('/content/Untitled_angle_09_12.dat',delimiter = '\\t')\n", "df.columns=['Count','Time']\n", "ns = 0.064\n", "df['Time'] = df.index * ns\n", "df['Speed'] = 0.46/df['Time']*10**9\n", "correct_df = df[(df['Time']>1.6) & (df['Time']<15)]" ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 206 }, "id": "QTTbLpFSBWIG", "outputId": "09b8c4f2-764e-40e7-f1cc-fce0589a6d15" }, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " | Count | \n", "Time | \n", "Speed | \n", "
---|---|---|---|
26 | \n", "31 | \n", "1.664 | \n", "2.764423e+08 | \n", "
27 | \n", "31 | \n", "1.728 | \n", "2.662037e+08 | \n", "
28 | \n", "23 | \n", "1.792 | \n", "2.566964e+08 | \n", "
29 | \n", "26 | \n", "1.856 | \n", "2.478448e+08 | \n", "
30 | \n", "22 | \n", "1.920 | \n", "2.395833e+08 | \n", "