Skip to content

disambiguate documentation for pandas.Series replace #44130

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

Merged
merged 6 commits into from
Oct 27, 2021

Conversation

el-iot
Copy link
Contributor

@el-iot el-iot commented Oct 21, 2021

Currently, the pandas.Series that is used for the example for pandas.Series.replace has an index which is identical to its values (i.e. pandas.Series([0, 1, 2, 3, 4])). This can be quite confusing at a first glance (as it was for me), as I assumed that pandas.Series.replace was using the index of the series (whereas it is actually using the values). Updated the documentation to use pandas.Series([1, 2, 3, 4, 5]) to remove this ambiguity.

@alimcmaster1 alimcmaster1 added this to the 1.4 milestone Oct 21, 2021
@alimcmaster1
Copy link
Member

Can you merge master code-checks should now be fixed?

@jreback
Copy link
Contributor

jreback commented Oct 24, 2021

pre commit checks are failing

@el-iot
Copy link
Contributor Author

el-iot commented Oct 27, 2021

@jreback @alimcmaster1 apologies for the delay - made a very silly mistake and it took me longer than it should have to track it down 👍 Looks like one of the tests timed-out, but the rest are okay?

@jreback jreback merged commit de57600 into pandas-dev:master Oct 27, 2021
@jreback
Copy link
Contributor

jreback commented Oct 27, 2021

thanks @el-iot

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.

3 participants