Pandas version checks

  • [X] 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 https://github.com/pandas-dev/pandas/blob/ebfcad17bdebfad05de90a9f70313ed4247524a7/pandas/core/arrays/base.py#L774-L778


pandas.DataFrame.dropna > Parameters > axis > ✔ values list

grafik https://github.com/pandas-dev/pandas/blob/ebfcad17bdebfad05de90a9f70313ed4247524a7/pandas/core/frame.py#L6352-L6357

ℹ️ Also https://github.com/pandas-dev/pandas/pull/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.

Comment From: djbrown

Ah never mind 🤦🏾 the issue is already fixed on the dev version of the docs: https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.fillna.html would be released with pandas 2