我有大約兩年的城市每月天然氣使用量,并且希望每天使用量等于每月的每日使用量并保持時間序列形狀,但我不知道該怎么做。
這是我的資料鏈接 [ 

繪圖代碼:
為了完整起見,粗略的繪圖代碼包含在下面。
from plotly.offline import plot
plot({'data': [{'x': df.index,
'y': df['gas_usage'],
'type': 'bar'}],
'layout': {'title': 'Original',
'template': 'plotly_dark'}})
plot({'data': [{'x': df2.index,
'y': df2['daily_usage'],
'type': 'bar'}],
'layout': {'title': 'Interpolated',
'template': 'plotly_dark'}})
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/461745.html
