Skip to content

DOC: Incorrectly formatted bullet points in DataFrame.fillna#method #52015

Closed
@djbrown

Description

@djbrown

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

pandas.DataFrame.fillna

Documentation problem

pandas.DataFrame.fillna > Parameters > method > ⚠️ values list

grafik

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

grafik

pandas/pandas/core/frame.py

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

No one assigned

    Labels

    DocsNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions