Skip to content

Conversation

@jorisvandenbossche
Copy link
Member

xref #39146

This turned out to be an easy one

@jorisvandenbossche jorisvandenbossche added the Internals Related to non-user accessible pandas implementation label Feb 26, 2021
if axis == 1:
axis = 0
elif axis == 0:
assert n == 0
Copy link
Member

Choose a reason for hiding this comment

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

comment on why this is expected (presumably the caller checks?)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, DataFrame diff already special cases that (and basically "misuses" Manager.diff with a wrong axis for n=0, in which case the axis doesn't matter).
Will add a comment for that.

@jreback jreback added this to the 1.3 milestone Feb 27, 2021
@jreback jreback merged commit e5e1fba into pandas-dev:master Feb 27, 2021
@jorisvandenbossche jorisvandenbossche deleted the am-diff branch March 1, 2021 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Internals Related to non-user accessible pandas implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants