-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
DocsNeeds TriageIssue that has not been reviewed by a pandas team memberIssue that has not been reviewed by a pandas team member
Description
Pandas version checks
- I have checked that the issue still exists on the latest versions of the docs on
main
here
Location of the documentation
Documentation problem
pandas.DataFrame.fillna > Parameters > method
> ⚠️ values list
pandas/pandas/core/arrays/base.py
Lines 774 to 778 in ebfcad1
method : {'backfill', 'bfill', 'pad', 'ffill', None}, default None | |
Method to use for filling holes in reindexed Series: | |
* pad / ffill: propagate last valid observation forward to next valid. | |
* backfill / bfill: use NEXT valid observation to fill gap. |
pandas.DataFrame.dropna > Parameters > axis
> ✔ values list
Lines 6352 to 6357 in ebfcad1
how : {'any', 'all'}, default 'any' | |
Determine if row or column is removed from DataFrame, when we have | |
at least one NA or all NA. | |
* 'any' : If any NA values are present, drop that row or column. | |
* 'all' : If all values are NA, drop that row or column. |
ℹ️ Also #49529 is probably related
Suggested fix for documentation
The problem could be the missing space after the colon. e.g. change
* value: description
to
* value : description
Then the fix would be:
* pad / ffill : propagate last valid observation forward to next valid.
* backfill / bfill : use NEXT valid observation to fill gap.
or it could be the missing single quotes around the values. e.g. change
* value: description
to
* 'value': description
Then the fix would be:
* 'pad / ffill': propagate last valid observation forward to next valid.
* 'backfill / bfill': use NEXT valid observation to fill gap.
Metadata
Metadata
Assignees
Labels
DocsNeeds TriageIssue that has not been reviewed by a pandas team memberIssue that has not been reviewed by a pandas team member