Skip to content

Commit

Permalink
Fix cumsum
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter committed Sep 6, 2023
1 parent 7c2ea6f commit 6b614b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/starksheet-cairo/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ calls.csv
daily_sheets.png
hourly_sheets.png
cumsum_sheets.png
monthly_sheets.png
14 changes: 8 additions & 6 deletions packages/starksheet-cairo/notebooks/sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@
plt.tight_layout()
plt.savefig("daily_sheets.png")


# %% Plot cumsum
plt.clf()
ax = counts.cumsum().plot.area(grid=True)
plt.tight_layout()
plt.savefig("cumsum_sheets.png")


# %% Plot monthly
counts = (
calls.groupby(["contract_identifier", pd.Grouper(key="timestamp", freq="M")])
Expand All @@ -159,9 +167,3 @@
)
plt.tight_layout()
plt.savefig("hourly_sheets.png")

# %% Plot cumsum
plt.clf()
ax = counts.cumsum().plot.area(grid=True)
plt.tight_layout()
plt.savefig("cumsum_sheets.png")

0 comments on commit 6b614b4

Please sign in to comment.