Skip to content

Usage of 'limit' keyword when filling with a value #10002

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
jorisvandenbossche opened this issue Apr 27, 2015 · 1 comment · Fixed by #10009
Closed

Usage of 'limit' keyword when filling with a value #10002

jorisvandenbossche opened this issue Apr 27, 2015 · 1 comment · Fixed by #10009
Labels
Milestone

Comments

@jorisvandenbossche
Copy link
Member

From SO: http://stackoverflow.com/questions/29906512/pandas-variation-on-filling-nan-whats-an-elegant-and-pythonic-way-to-do-thi/29906743?noredirect=1#29906743

When doing df.fillna(10, limit=2) what is limit=2 doing?

The docstring says:

limit : int, default None
Maximum size gap to forward or backward fill

But this only explains for filling with a method, not for filling with a value.

@jorisvandenbossche
Copy link
Member Author

Comment of @jreback at SO: doc string wrong - limit is how many to fill

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 a pull request may close this issue.

2 participants