Skip to content

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

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
1 task done
djbrown opened this issue Mar 16, 2023 · 1 comment
Closed
1 task done

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

djbrown opened this issue Mar 16, 2023 · 1 comment
Labels
Docs Needs Triage Issue that has not been reviewed by a pandas team member

Comments

@djbrown
Copy link

djbrown commented Mar 16, 2023

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.
@djbrown djbrown added Docs Needs Triage Issue that has not been reviewed by a pandas team member labels Mar 16, 2023
@djbrown
Copy link
Author

djbrown commented Mar 16, 2023

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

@djbrown djbrown closed this as completed Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Needs Triage Issue that has not been reviewed by a pandas team member
Projects
None yet
Development

No branches or pull requests

1 participant