I have about two years of monthly gas usage for a city and want to generate daily use concerning daily usage sum equal to monthly and keep time-series shape, but I don't know how to do that.
Here is my data Link [1]
I have about two years of monthly gas usage for a city and want to generate daily use concerning daily usage sum equal to monthly and keep time-series shape, but I don't know how to do that.
Here is my data Link [1]
Copyright © 2021 Jogjafile Inc.
The following code sample demonstrates date and data interpolation using
pandas
.The following steps are taken:
Example code:
Sample output of
df2
:Visual confirmation
I've included two simple graphs to illustrate the dataset alignment and interpolation.
Plotting code:
For completeness, the rough plotting code is included below.