Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specific pandas version required to read in pickled results #4

Closed
Emmavt opened this issue Oct 15, 2023 · 3 comments
Closed

Specific pandas version required to read in pickled results #4

Emmavt opened this issue Oct 15, 2023 · 3 comments
Assignees

Comments

@Emmavt
Copy link

Emmavt commented Oct 15, 2023

In 02_api.ipynb, we read in the results of an API query about the 2020 election using the following code:
df = pd.read_pickle("../data/election2020_articles.pkl")

As per this issue on the pandas github, the pd.read_pickle function is not backwards compatible, so we will need workshop attendees to have pandas version 1.3.4 (or an earlier version). I'm not sure how best to require this?

@tomvannuenen tomvannuenen self-assigned this Oct 26, 2023
@tomvannuenen
Copy link
Contributor

I just tried running pd.read_pickle("../data/election2020_articles.pkl") while running Pandas 2.0.3 which worked. Can you still reproduce the error @Emmavt?

@Emmavt
Copy link
Author

Emmavt commented Oct 26, 2023

Yes, with Pandas 2.1.2 it is still returning the same error.

@tomvannuenen
Copy link
Contributor

Replaced Pickle with csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants