Skip to content
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

pandas.Series.ne Documentation has Series.add as example #24824

Closed
Ishkatan opened this issue Jan 18, 2019 · 1 comment
Closed

pandas.Series.ne Documentation has Series.add as example #24824

Ishkatan opened this issue Jan 18, 2019 · 1 comment
Labels
Duplicate Report Duplicate issue or pull request

Comments

@Ishkatan
Copy link

Code Sample, a copy-pastable example if possible

# Your code here
Wrong example in:
https://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.ne.html#pandas.Series.ne
and  pandas.Series.le 
https://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.le.html

Problem description

The documentation for pandas.Series.ne and le uses pandas.Series.add as an example. Shouldn't it be something using a.ne or a.le ?

Output of pd.show_versions()

Example is:

a.add(b, fill_value=0)
a 2.0
b 1.0
c 1.0
d 1.0
e NaN
dtype: float64

@mroeschke
Copy link
Member

Essentially a dup of #24589. An example for add is essentially hardcoded for all these ops, but specific examples certainly welcome to improve the documentation for each method,

@mroeschke mroeschke added the Duplicate Report Duplicate issue or pull request label Jan 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants