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

Pandas updates and deprecations #249

Open
3 tasks
doctor-phil opened this issue Oct 1, 2024 · 4 comments · May be fixed by #251
Open
3 tasks

Pandas updates and deprecations #249

doctor-phil opened this issue Oct 1, 2024 · 4 comments · May be fixed by #251
Assignees

Comments

@doctor-phil
Copy link
Collaborator

doctor-phil commented Oct 1, 2024

Pandas is constantly updating and making big changes and deprecating methods; some of which are core to certain lectures. It's getting harder to keep that pinned version <2.0, since the student's environments are more up to date.

I am worried that eventually upgrading pandas will have huge impacts on some of these notes. Especially the lecture on reshaping.

Collecting relevant substantial changes here so I can go back and try to update it for next term.

  • stack and unstack changed behavior somehow
  • issue with downcasting on pd.DataFrame.fillna?
  • possible changes to bfill and ffill

add more here as they arise

@doctor-phil
Copy link
Collaborator Author

doctor-phil commented Oct 21, 2024

  • applymap -> map

@doctor-phil
Copy link
Collaborator Author

doctor-phil commented Oct 23, 2024

  • value_counts won't apply twice in the chapter on merging, goodreads example. Something to do with count column

@doctor-phil
Copy link
Collaborator Author

doctor-phil commented Oct 29, 2024

  • in groupby.md, in the section on pd.Grouper, the line start=pd.datetime.today()... should be start = pd.Timestamp.today()...

@doctor-phil
Copy link
Collaborator Author

doctor-phil commented Oct 31, 2024

  • quandl python API is deprecated in favor of nasdaq-data-link. Different syntax and data (columns) also different in pandas/timeseries.md
  • after updating to use nasdaq-data-link, the "delorean" exercises are no longer possible (no open or close price in the new table)

@doctor-phil doctor-phil self-assigned this Oct 31, 2024
@doctor-phil doctor-phil linked a pull request Oct 31, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant