質問編集履歴
1
コードの一部を見やすく修正しましたが、動作自体に変更はありません。
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,9 +36,9 @@
|
|
36
36
|
df["日付"] = pd.to_datetime(df["日付"])
|
37
37
|
|
38
38
|
######## 値の代入
|
39
|
-
np_df = df
|
39
|
+
np_df = df["データ"]
|
40
40
|
x = pd.to_datetime(df['日付'], format='%Y-%m') #日時情報を代入
|
41
|
-
y = np_df
|
41
|
+
y = np_df #2列目の値を入れる
|
42
42
|
|
43
43
|
######## 描画の初期設定準備
|
44
44
|
figure_ = plt.figure(1, figsize=(15,10))
|