Skip to content

Conversation

@zhangbowen-coder
Copy link
Contributor

@zhangbowen-coder zhangbowen-coder commented Dec 16, 2025

Replacing some of @appender in pandas/pandas/core/frame.py.

ref #62437

ender in pandas/pandas/core/frame.py.
Comment on lines +9394 to +9409
cost revenue
Q1 A 250 100
B 150 250
C 100 300
Q2 A 150 200
B 300 175
C 220 225

>>> df.le(df_multindex, level=1)
cost revenue
Q1 A True True
B True True
C True True
Q2 A False True
B True False
C True False
Copy link
Member

Choose a reason for hiding this comment

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

Could you re-align these tables?

Comment on lines +9247 to +9253
cost revenue
Q1 A True True
B True True
C True True
Q2 A False True
B True False
C True False
Copy link
Member

Choose a reason for hiding this comment

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

Same here

Comment on lines +5629 to +5647
Examples
--------
>>> df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]})

Change the row labels.

>>> df.set_axis(["a", "b", "c"], axis="index")
A B
a 1 4
b 2 5
c 3 6

Change the column labels.

>>> df.set_axis(["I", "II"], axis="columns")
I II
0 1 4
1 2 5
2 3 6
Copy link
Member

Choose a reason for hiding this comment

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

Could you fix the indentation?

@mroeschke mroeschke added the Docs label Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants