question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mzeitlin11commented, Sep 12, 2021

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

0reactions
erfannarimancommented, Sep 12, 2021

take

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found