Skip to content

DOC: simply method='bfill'? #46631

Closed
@kwhkim

Description

@kwhkim

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

https://pandas.pydata.org/docs/user_guide/cookbook.html#cookbook-missing-data

Documentation problem

DOC says use df.reindex(df.index[::-1]).ffill()
but df.bfill() is available, maybe after some version? I don't know

Do we need to do df.reindex(df.index[::-1]).bfill() when index is alway sorted?

Suggested fix for documentation

replace df.reindex(df.index[::-1]).ffill() with df.bfill()

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolate

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions