Skip to content

Conversation

@ShaunSrirangam
Copy link
Contributor

Fixed the output of the code in docs:
df = pd.DataFrame({"foo": [1, 2, 3], "bar": [4, 5, 6]})
df["foo"][df["bar"] > 5] = 100
df

To:
foo bar
0 1 4
1 2 5
2 100 6

@mroeschke mroeschke added the Docs label Dec 4, 2025
@mroeschke mroeschke modified the milestones: 2.3.4, 3.0 Dec 4, 2025
@mroeschke mroeschke merged commit 3d1ad6b into pandas-dev:main Dec 4, 2025
9 checks passed
@mroeschke
Copy link
Member

Thanks @ShaunSrirangam

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.

DOC: Code example doesn't run as shown

2 participants