Skip to content

Commit

Permalink
changed history write location
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Morris committed Aug 11, 2023
1 parent 0873e83 commit 88fce25
Show file tree
Hide file tree
Showing 4 changed files with 264 additions and 67 deletions.
2 changes: 2 additions & 0 deletions poems/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ def make_stats(self, order_by=None, ascending=True, force_rows=True, force_cols=

self.stats.loc[author] = name, nationality, birth, death, n_poems, n_sent, np.round(elapsed,1)

self.stats = self.stats.sort_values(by=["#_of_times_sent", "name"], ascending=False)

if not order_by is None:
self.stats = self.stats.sort_values(by=order_by, ascending=ascending)

Expand Down
Loading

0 comments on commit 88fce25

Please sign in to comment.