-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2720f75
commit e0d2e84
Showing
3 changed files
with
13,687 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import os | ||
import pandas as pd | ||
|
||
# make sure the working directory when running this file is the project root of the git repository | ||
os.chdir('../../') | ||
|
||
old = pd.read_csv('openrefine/v0.8/IHEC_metadata_harmonization.v0.8.csv') | ||
old.index = old.EpiRR | ||
new = pd.read_csv('openrefine/v0.9/IHEC_metadata_harmonization.v0.9.csv') | ||
new.index = new.EpiRR | ||
|
||
diff_tbl = old.compare(new) | ||
diff_tbl.rename(columns={'self': 'v0.8', 'other': 'v0.9'}, inplace=True) | ||
diff_tbl.apply(lambda x: [x.dropna()], axis=1).to_json('openrefine/v0.9/diff_v0.8_v0.9.json', indent=True) |
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
Oops, something went wrong.