Created
July 21, 2021 09:02
-
-
Save enriquefynn/ad478f1995e900979a67181f64497a07 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 | |
# Plot rewards from subscan.io | |
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() | |
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