Pythonのお勉強 Part58at TECH
Pythonのお勉強 Part58 - 暇つぶし2ch114:デフォルトの名無しさん
18/11/23 19:53:21.83 oESjsyiL.net
dat0 = np.arange(366)
dat1 = np.array((np.arange(366), np.arange(366)))
dat2 = np.arange(3600)
dat3 = np.array((np.arange(3600), np.arange(3600)))
p00 = pd.Series(dat0, index=pd.date_range('2018-11-22', periods=366))
p01 = pd.DataFrame(dat1.T, index=pd.date_range('2018-11-22', periods=366), columns=['hoge', 'fuga'])
p10 = pd.Series(dat2, index=pd.timedelta_range(0, periods=3600))
p11 = pd.DataFrame(dat3.T, index=pd.timedelta_range(0, periods=3600), columns=['hoge', 'fuga'])
fig = plt.figure()
axes = [fig.add_subplot(411 + _) for _ in range(4)]
p00.cumsum().plot(ax=axes[0])
p01.plot(ax=axes[1])
p10.cumsum().plot(ax=axes[2])
p11.plot(ax=axes[3])
plt.show()


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch