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

TYP: NDFrame.__round__ #792

Merged
merged 3 commits into from
Oct 6, 2023
Merged

TYP: NDFrame.__round__ #792

merged 3 commits into from
Oct 6, 2023

Conversation

twoertwein
Copy link
Member

@twoertwein
Copy link
Member Author

There are probably a few more cases where we could use Self or remove the method from NDFrame when DataFrame/Series both explicitly declare the method (typically with more precise dtype-aware version in Series).

@twoertwein twoertwein requested a review from Dr-Irv October 6, 2023 03:05
@@ -74,19 +74,16 @@ class NDFrame(indexing.IndexingMixin):
def ndim(self) -> int: ...
@property
def size(self) -> int: ...
def swapaxes(
Copy link
Member Author

Choose a reason for hiding this comment

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

Is deprecated since 2.1

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 @twoertwein . Ideally, we'd have tests for the other things you changed, but that's a lot of work, so I'm OK with just putting these kinds of improvements in there.

@Dr-Irv Dr-Irv merged commit ebb8ffa into pandas-dev:main Oct 6, 2023
10 checks passed
@twoertwein twoertwein deleted the round branch February 10, 2024 20:30
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.

Argument value to insert of DataFrame has incompatible type NDFrame
2 participants