Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(doc): #61432 typing#61455

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

cmp0xff
Copy link
Contributor

@cmp0xffcmp0xff marked this pull request as ready for reviewMay 19, 2025 07:49
Column to use to make new frame's columns.
index :str or object or a list ofstr, optional
index :label or object or a list ofthe previous, optional
Copy link
Member

Choose a reason for hiding this comment

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

@rhshadrach IMO we should actually be usingHashable everywhere as since it's an actual Python type unlikelabel. What do you think?

Copy link
Member

Choose a reason for hiding this comment

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

I'd be good with that. The only potential reason I can cook up not to is that the public API does have a number of arguments namedlabel or derivatives thereof. But I agree that this should be a type rather than a description of use.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I am just fixinglabel in the context of the current MR inccf060c . For furtherlabels, I would rather have them fixed separatly.

rhshadrach reacted with thumbs up emoji
Keys to group by on the pivot table index. If a list is passed,
it can contain any of the other types (except list). If an array is
passed, it must be the same length as the data and will be used in
the same manner as column values.
columns : column, Grouper, array, orlist of the previous
columns : column, Grouper, array, orsequence of the previous
Copy link
Member

Choose a reason for hiding this comment

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

Is tuple treated the same as other sequences here? (I haven't checked)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Thanks for observing the potential danger.index andcolumns are processed by

index=_convert_by(index)columns=_convert_by(columns)

which converts by usingby = list(by).

@mroeschkemroeschke added this to the3.0 milestoneMay 20, 2025
Copy link
Member

@mroeschkemroeschke left a comment

Choose a reason for hiding this comment

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

LGTM

cmp0xff reacted with heart emoji
@cmp0xff
Copy link
ContributorAuthor

@mroeschke thank you for the approval. Wouldn't the PR fit for 2.2.4 or 2.3.0? It seems to be merely a fix to me.

@mroeschke
Copy link
Member

This PR will go into 3.0. No whatsnew entry is needed for this PR.

cmp0xff reacted with thumbs up emoji

Copy link
Member

@rhshadrachrhshadrach left a comment

Choose a reason for hiding this comment

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

lgtm

cmp0xff reacted with heart emoji
@rhshadrachrhshadrach added the ReshapingConcat, Merge/Join, Stack/Unstack, Explode labelMay 20, 2025
@rhshadrachrhshadrach merged commitfe60f43 intopandas-dev:mainMay 20, 2025
47 of 48 checks passed
@rhshadrach
Copy link
Member

Thanks@cmp0xff

cmp0xff reacted with rocket emoji

@cmp0xffcmp0xff deleted the bugfix/cmp0xff/61432-names-hashable branchMay 20, 2025 21:42
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mroeschkemroeschkemroeschke approved these changes

@rhshadrachrhshadrachrhshadrach approved these changes

Assignees
No one assigned
Labels
DocsReshapingConcat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Milestone
3.0
Development

Successfully merging this pull request may close these issues.

DOC: Series.name is just Hashable, but many column arguments require str
3 participants
@cmp0xff@mroeschke@rhshadrach

[8]ページ先頭

©2009-2025 Movatter.jp