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

WIP: patch pandas issues and upgrades #251

Merged
merged 41 commits into from
Nov 5, 2024
Merged

WIP: patch pandas issues and upgrades #251

merged 41 commits into from
Nov 5, 2024

Conversation

doctor-phil
Copy link
Collaborator

@doctor-phil doctor-phil commented Oct 25, 2024

This PR

  • patches pandas issues and upgrades
  • upgrades environment.yml to latest anaconda and software
  • updates lectures to run with the latest packages

this PR now includes #259

@doctor-phil doctor-phil linked an issue Oct 31, 2024 that may be closed by this pull request
3 tasks
@mmcky
Copy link
Contributor

mmcky commented Nov 1, 2024

@doctor-phil -- this is now running but with some errors re: code in the lectures.

@doctor-phil
Copy link
Collaborator Author

@mmcky thanks! I'll try to deal with the lecture build errors

@mmcky
Copy link
Contributor

mmcky commented Nov 2, 2024

@doctor-phil could be some odd cache issue, however a few more execution issues have showed up

  • (applications/networks.md) ValueError�[0m: could not convert string to float: '2/1/2021'
  • (applications/recidivism.md) ZeroDivisionError�[0m: float division by zero
  • (applications/working_with_text.md) �
    [0;31mValueError�[0m: time data "2016-10-26T00:00:00Z" doesn't match format "%Y-%m-%dT%H:%M:%S.%f%z", at position 8659. You might want to try:
    • passing format if your strings have a consistent format;
    • passing format='ISO8601' if your strings are all ISO8601 but not necessarily in exactly the same format;
    • passing format='mixed', and the format will be inferred for each element individually. You might want to use dayfirst alongside this.
  • (problem_sets/problem_set_8.md) ValueError�[0m: Value must be a nonnegative integer or None

@mmcky
Copy link
Contributor

mmcky commented Nov 2, 2024

@doctor-phil I have merged the branch associated with #259 into this PR.

@mmcky
Copy link
Contributor

mmcky commented Nov 2, 2024

@doctor-phil here is the latest set of errors:

execution-reports-6.zip

@github-actions github-actions bot temporarily deployed to commit November 5, 2024 17:57 Inactive
@doctor-phil doctor-phil merged commit 3e0de6d into main Nov 5, 2024
4 of 5 checks passed
@doctor-phil doctor-phil deleted the patches branch November 5, 2024 18:00
doctor-phil added a commit that referenced this pull request Nov 5, 2024
* WIP: patch pandas issues and upgrades (#251)

* patch value counts issue in merge lecture

* Update ci.yml

hopefully this works

* Update ci.yml

idk

* WIP: fix quandl deprecation

* Update timeseries.md

* Update environment.yml

upgrade pandas

* Update environment.yml

* Update groupby.md

* applymap -> map

* Update the_index.md

* Update timeseries.md

* fix matplotlib

* simplify btc time series data

* Update timeseries.md

* Update timeseries.md

this should fix time series

* one more

* TMP: disable build cache

* MAINT: maintenance of cloud infrastructure

* TST: upgrade anaconda and software stack

* update to python=3.12 in ci workflow

* simply build and work through missing dependencies

* import some dependencies

* enable more dependencies

* Update networks.md

* oops

* fix deprecated map dataset, problem set issue

* need to install bokeh for maps lecture

* fix ml in econ?

* Update recidivism.md

* working with text

* Update working_with_text.md

* working with text

* Update working_with_text.md

* Update environment.yml

* Update working_with_text.md

* Update working_with_text.md

* try limiting api call delay

* try something else

* Update working_with_text.md

---------

Co-authored-by: Matt McKay <[email protected]>
Co-authored-by: mmcky <[email protected]>

* fix working with text caching

---------

Co-authored-by: Matt McKay <[email protected]>
Co-authored-by: mmcky <[email protected]>
doctor-phil added a commit that referenced this pull request Nov 5, 2024
* WIP: patch pandas issues and upgrades (#251)

* patch value counts issue in merge lecture

* Update ci.yml

hopefully this works

* Update ci.yml

idk

* WIP: fix quandl deprecation

* Update timeseries.md

* Update environment.yml

upgrade pandas

* Update environment.yml

* Update groupby.md

* applymap -> map

* Update the_index.md

* Update timeseries.md

* fix matplotlib

* simplify btc time series data

* Update timeseries.md

* Update timeseries.md

this should fix time series

* one more

* TMP: disable build cache

* MAINT: maintenance of cloud infrastructure

* TST: upgrade anaconda and software stack

* update to python=3.12 in ci workflow

* simply build and work through missing dependencies

* import some dependencies

* enable more dependencies

* Update networks.md

* oops

* fix deprecated map dataset, problem set issue

* need to install bokeh for maps lecture

* fix ml in econ?

* Update recidivism.md

* working with text

* Update working_with_text.md

* working with text

* Update working_with_text.md

* Update environment.yml

* Update working_with_text.md

* Update working_with_text.md

* try limiting api call delay

* try something else

* Update working_with_text.md

---------

Co-authored-by: Matt McKay <[email protected]>
Co-authored-by: mmcky <[email protected]>

* fix working with text caching

---------

Co-authored-by: Matt McKay <[email protected]>
Co-authored-by: mmcky <[email protected]>
doctor-phil added a commit that referenced this pull request Nov 5, 2024
* update patches branch (#263)

* WIP: patch pandas issues and upgrades (#251)

* patch value counts issue in merge lecture

* Update ci.yml

hopefully this works

* Update ci.yml

idk

* WIP: fix quandl deprecation

* Update timeseries.md

* Update environment.yml

upgrade pandas

* Update environment.yml

* Update groupby.md

* applymap -> map

* Update the_index.md

* Update timeseries.md

* fix matplotlib

* simplify btc time series data

* Update timeseries.md

* Update timeseries.md

this should fix time series

* one more

* TMP: disable build cache

* MAINT: maintenance of cloud infrastructure

* TST: upgrade anaconda and software stack

* update to python=3.12 in ci workflow

* simply build and work through missing dependencies

* import some dependencies

* enable more dependencies

* Update networks.md

* oops

* fix deprecated map dataset, problem set issue

* need to install bokeh for maps lecture

* fix ml in econ?

* Update recidivism.md

* working with text

* Update working_with_text.md

* working with text

* Update working_with_text.md

* Update environment.yml

* Update working_with_text.md

* Update working_with_text.md

* try limiting api call delay

* try something else

* Update working_with_text.md

---------

Co-authored-by: Matt McKay <[email protected]>
Co-authored-by: mmcky <[email protected]>

* fix working with text caching

---------

Co-authored-by: Matt McKay <[email protected]>
Co-authored-by: mmcky <[email protected]>

* update patches from main (#264)

* WIP: patch pandas issues and upgrades (#251)

* patch value counts issue in merge lecture

* Update ci.yml

hopefully this works

* Update ci.yml

idk

* WIP: fix quandl deprecation

* Update timeseries.md

* Update environment.yml

upgrade pandas

* Update environment.yml

* Update groupby.md

* applymap -> map

* Update the_index.md

* Update timeseries.md

* fix matplotlib

* simplify btc time series data

* Update timeseries.md

* Update timeseries.md

this should fix time series

* one more

* TMP: disable build cache

* MAINT: maintenance of cloud infrastructure

* TST: upgrade anaconda and software stack

* update to python=3.12 in ci workflow

* simply build and work through missing dependencies

* import some dependencies

* enable more dependencies

* Update networks.md

* oops

* fix deprecated map dataset, problem set issue

* need to install bokeh for maps lecture

* fix ml in econ?

* Update recidivism.md

* working with text

* Update working_with_text.md

* working with text

* Update working_with_text.md

* Update environment.yml

* Update working_with_text.md

* Update working_with_text.md

* try limiting api call delay

* try something else

* Update working_with_text.md

---------

Co-authored-by: Matt McKay <[email protected]>
Co-authored-by: mmcky <[email protected]>

* fix working with text caching

---------

Co-authored-by: Matt McKay <[email protected]>
Co-authored-by: mmcky <[email protected]>

* Update matplotlib.md

* Update networks.md

* Update recidivism.md

* Update regression.md

* last deprecation fix

* last one for real

---------

Co-authored-by: Matt McKay <[email protected]>
Co-authored-by: mmcky <[email protected]>
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 this pull request may close these issues.

Pandas updates and deprecations
2 participants