Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Name Time l
- 1 1.129 1G-d
- 1 0.113 1G-a
- 1 3.374 1B-b
- 1 3.367 1B-c
- 1 3.374 1B-d
- 2 3.355 1B-e
- 2 3.361 1B-a
- 3 1.129 1G-a
- # Assigns the new data frame to "df" with the data from only three columns
- header = ['Names','Time','l']
- df = pd.DataFrame(df_2, columns = header)
- # Sorts the data frame by column "Names" as integers
- df.Names = df.Names.astype(int)
- df = df.sort_values(by=['Names'])
- # Changes the data to match format after converting it to int
- df.Time=df.Time.astype(int)
- df.Time = df.Time/1000
- csv_file = df.to_csv(index=False, columns=header, sep=" " )
- plt.xlim(0, 60)
- plt.ylim(0, 18)
- plt.legend(loc='best')
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement