You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I was looking through the pandas documentation for the na_values parameter under pandas.read_csv and I noticed that there's a typo in the section:
By default the following values are interpreted as NaN: “ “, “#N/A”, “#N/A N/A”, “#NA”, “-1.#IND”, “-1.#QNAN”, “-NaN”, “-nan”, “1.#IND”, “1.#QNAN”, “”, “N/A”, “NA”, “NULL”, “NaN”, “None”, “n/a”, “nan”, “null “.
The " " is included in the list of default string to NAs starting in pandas 2.1 all the way to the current version of the docs. However, in the code for the list of default string to NAs, I'm seeing "" instead.
Suggested fix for documentation
I think the fix should be to remove " " and replace with "" in the list of default string to NAs in the pandas docs for the versions 2.1 and up to the current version so it's consistent with the code.
Thanks for all your help!
The text was updated successfully, but these errors were encountered:
Pandas version checks
main
hereLocation of the documentation
https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html
Documentation problem
Hi,
I was looking through the pandas documentation for the
na_values
parameter underpandas.read_csv
and I noticed that there's a typo in the section:The
" "
is included in the list of default string to NAs starting in pandas 2.1 all the way to the current version of the docs. However, in the code for the list of default string to NAs, I'm seeing""
instead.Suggested fix for documentation
I think the fix should be to remove
" "
and replace with""
in the list of default string to NAs in the pandas docs for the versions 2.1 and up to the current version so it's consistent with the code.Thanks for all your help!
The text was updated successfully, but these errors were encountered: