質問編集履歴

1

コードの追加

2019/02/07 01:55

投稿

sham0909
sham0909

スコア27

test CHANGED
File without changes
test CHANGED
@@ -61,3 +61,43 @@
61
61
  |0:00.010|2|4|6|1|
62
62
 
63
63
  |0:00.020|4|8|7|3|
64
+
65
+
66
+
67
+
68
+
69
+ 追記
70
+
71
+
72
+
73
+ コードは以下の通りです。
74
+
75
+
76
+
77
+ ```python
78
+
79
+ import pandas as pd
80
+
81
+ import matplotlib.pyplot as plt
82
+
83
+
84
+
85
+ df1=pd.DataFrame({"TIME":["00:00.005","00:00.010","00:00.015","00:00.020"],"A"["1","2","3","4"],"B":["2","4","6","8"]})
86
+
87
+ df1.index=df1["TIME"]
88
+
89
+ df2=pd.DataFrame({"TIME":["00:00.010","00:00.020","00:00.030","00:00.040"],"C"["6","7","8","9"],"D":["1","3","5","7"]})
90
+
91
+ df2.index=df2["TIME"]
92
+
93
+ df3=pd.concat([df1,df2],axis=1,join="inner")
94
+
95
+
96
+
97
+ plt.plot(df3["TIME"],df3["A"],df3["B"])
98
+
99
+ plt.plot(df3["TIME"],df3["C"],df3["D"])
100
+
101
+
102
+
103
+ ```