Skip to content

MAINT: Bump pandas to 1.5.0 #317

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

Merged
merged 29 commits into from
Sep 26, 2022
Merged

MAINT: Bump pandas to 1.5.0 #317

merged 29 commits into from
Sep 26, 2022

Conversation

bashtage
Copy link
Contributor

No description provided.

@bashtage
Copy link
Contributor Author

1.5.0 Released this weekend.

@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Sep 20, 2022

I think we can take the whatsnew document and create a list of all the deprecations. Can you do that in #227 with a checklist so it makes it easier to see which ones you have done and which ones are still to be done?

this will make it easier for me to review. Thanks!!!

@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Sep 22, 2022

@bashtage Not sure you saw my comment here: #317 (comment)

It would be easier to review if we have a tracking list of all the 1.5 changes we need to make. Can you make such a list?

@twoertwein
Copy link
Member

It would be easier to review if we have a tracking list of all the 1.5 changes we need to make.

That would definitly be the easier for reviewers :) (but going through the changelog is no fun). Later today, I will simply execute code with the removed arguments to test whether they raise warnings. It might not cover all deprecations, but I can then at least approve this PR.

Copy link
Member

@twoertwein twoertwein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few optional comments, but otherwise looks good to me.

@Dr-Irv
Copy link
Collaborator

Dr-Irv commented Sep 23, 2022

I created a list for all of the 1.5 issues (changes and deprecations) here: #227 (comment)

So as they get fixed, we can edit that comment and check off the boxes and put a link to the relevant PR

I'll use that list to cross-check against this PR once it turns green again. @bashtage ping me when green

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other simple ones to do with deprecations for this PR (there are more to do in a later PR):

  1. remove __array_wrap__() from core/generic.pyi
  2. Deprecated Timedelta.freq and Timedelta.is_populated
  3. Deprecated Timedelta.delta

Am tracking in #227 what you did here, and would need to update that if you do the above 3.

Other concern (which is marked in a few places in this review) is the deletion of tests that addressed previously reported issues with respect to groupby.__iter__(). Please don't delete old tests (unless they are no longer relevant)

Thanks for all the work on this.

@@ -278,7 +278,7 @@ class Styler(StylerRenderer[Styler]):
) -> Styler: ...
def highlight_null(
self,
null_color: str = ...,
color: str | None = ...,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs are missing None as an argument - can you create an issue for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs on that one are pretty wrong. Have wrong color too

@Dr-Irv Dr-Irv mentioned this pull request Sep 24, 2022
Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. We're in disagreement about the deprecation of groupby(Scalar). The code that was in the test suite still works without a deprecation message, so can you put back all of those changes, or prove to me otherwise.
  2. With respect to factorize(), you can still include it. The error you were getting was because mypy doesn't allow a subclass to return a subtype of the parent's class return type. pyright allows that. So just put a # type: ignore in core/arrays/sparse.pyi for factorize and then you should be good (with docs about why it is necessary).
  3. For ExcelWriter, some methods/properties were deprecated, but there is a list of them that are now public, and you removed them. Maybe you misunderstood the list I created, so those need to be in there (e.g., book, sheets, etc.)

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are also still a few things I pointed out in the previous review that still have to be addressed.

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's fix the rsplit one (it was a bug), and then this should be good to go.

Then I'll do the first 1.5.0.yymmdd release.

@bashtage
Copy link
Contributor Author

Think it is ready.

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @bashtage

@Dr-Irv Dr-Irv merged commit d1f00f3 into pandas-dev:main Sep 26, 2022
@bashtage bashtage deleted the move-to-1.5.0 branch September 27, 2022 07:32
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.

3 participants