DOC: Typo in `fillna()` documentation
See original GitHub issue- I have checked that the issue still exists on the latest versions of the docs on
master
here
Location of the documentation
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.fillna.html
Documentation problem
Typo in one of the examples for fillna()
. Specifically, the last example with df2 = pd.DataFrame(np.zeros((4, 4)), columns=list("ABCE"))
where the last column should be E
but is instead D
in the printout.
Suggested fix for documentation
Either fix to df2 = pd.DataFrame(np.zeros((4, 4)), columns=list("ABCD"))
or fix the printout.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
pandas.DataFrame.fillna — pandas 1.5.2 documentation
Fill NA /NaN values using the specified method. Parameters. valuescalar, dict, Series, or DataFrame. Value to use to fill holes (e.g. 0), ...
Read more >BUG: fillna returns frame when inplace=True if fill values are ...
fillna will return the frame in question if passed fill values via a dict, even if inplace=True. In [6]: data = pd.DataFrame({'a': [1,...
Read more >Xarray documentation
Xarray makes working with labelled multi-dimensional arrays in Python simple, efficient, and fun! Useful links: Home| Code Repository| Issues| Discussions| ...
Read more >pyspark.sql.DataFrame.fillna - Apache Spark
fill() are aliases of each other. New in version 1.3.1. Parameters. valueint, float, string, bool or dict.
Read more >SettingwithCopyWarning: How to Fix This Warning in Pandas
By chance, we come across another mistake in our DataFrame . ... in the documentation: https://pandas.pydata.org/pandas-docs/stable/indexing ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah I think an extra line could help - or adding a missing value to column “D” to make it more obvious that it is not being filled
take