Created
October 1, 2021 20:10
-
-
Save enriquefynn/09941f4a62de41c6aa494334285a77b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import matplotlib.pyplot as plt | |
import sys | |
import pandas as pd | |
df = pd.read_csv(sys.argv[1]) | |
df["Date"] = df["Date"].astype("datetime64") | |
data = df.groupby(pd.Grouper(key='Date', freq='D'))['Value'].sum() | |
plt.title(sys.argv[1]) | |
print(data.mean()) | |
data.plot() | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment