Skip to content

Commit

Permalink
Fix typo and logic
Browse files Browse the repository at this point in the history
  • Loading branch information
martimpassos committed Apr 9, 2024
1 parent 8100567 commit 588197b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

current = pd.read_excel("input/jstor.xls")

new = pd.read_excel(os.path.join("jstor_download"), os.listdir("jstor_download")[0])
new = pd.read_excel(os.path.join("jstor_download", os.listdir("jstor_download")[0]))

comparison = new.compare(current, keep_shape=True)

changes = comparison.notna().any(axis=1).any(level=0)
changes = comparison.notna().any(axis=1)

to_process = new[changes]

Expand Down

0 comments on commit 588197b

Please sign in to comment.