Skip to content

Make Series.map() documentation a bit more verbose #15235

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

Closed
wants to merge 1 commit into from

Conversation

manuels
Copy link
Contributor

@manuels manuels commented Jan 26, 2017

No description provided.

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

Now you are at it, could you also add the construction of the objects used in the examples? (so the example can be copy pasted to try out yourself)

@@ -2138,6 +2138,14 @@ def map(self, arg, na_action=None):
two bar
three baz

>>> z
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a single sentence between the examples? Like "Mapping a dictionary works similar as with a Series (mapping dict keys on index labels): "

@@ -2138,6 +2138,14 @@ def map(self, arg, na_action=None):
two bar
three baz

>>> z
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 add a single sentence between the examples? Eg something like "Mapping a dict works similarly to mapping a Series (the dict keys are mapped on the index labels): "

@manuels
Copy link
Contributor Author

manuels commented Jan 26, 2017

Thanks for the quick response. I have added some text and added more code to be able to reproduce 'at home'.

@codecov-io
Copy link

codecov-io commented Jan 26, 2017

Current coverage is 86.31% (diff: 100%)

Merging #15235 into master will not change coverage

@@             master     #15235   diff @@
==========================================
  Files           139        139          
  Lines         51091      51091          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits          44099      44099          
  Misses         6992       6992          
  Partials          0          0          

Powered by Codecov. Last update 0c8442c...c5113f2

@jreback jreback added this to the 0.20.0 milestone Jan 27, 2017
@jreback
Copy link
Contributor

jreback commented Mar 2, 2017

thanks!

@jreback jreback closed this in 211ecd5 Mar 2, 2017
AnkurDedania pushed a commit to AnkurDedania/pandas that referenced this pull request Mar 21, 2017
Author: manuels <[email protected]>

Closes pandas-dev#15235 from manuels/patch-1 and squashes the following commits:

c5113f2 [manuels] Make Series.map() documentation a bit more verbose
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.

4 participants