Skip to content

Commit

Permalink
Fix pickle bug with pandas 1.3.0 (#38)
Browse files Browse the repository at this point in the history
Co-authored-by: rbusche <[email protected]>
  • Loading branch information
JarnoRFB and rbusche authored Jul 16, 2021
1 parent ed297b4 commit 6fc601a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
numpy
matplotlib
pandas
pandas==1.3.0
plotnine
scipy
seaborn
Expand Down
3 changes: 1 addition & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def tsc_generator(train_data, test_data):

@pytest.fixture
def filter_combination(shared_datadir):
with open(shared_datadir / "cases.pickle", "rb") as handle:
cases = pickle.load(handle)
cases = pd.read_pickle(shared_datadir / "cases.pickle")
cases_in_berlin = cases.query('county == "Berlin"')
return FilterCombination(
disease="SAL", county="Berlin", pathogen="SAL", data=cases_in_berlin
Expand Down

0 comments on commit 6fc601a

Please sign in to comment.