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
The dtype_backend parameter says: "Back-end data type applied to the resultant DataFrame" but Series.convert_dtypes returns a Series not a DataFrame
On a sidenote, there are a few more methods in NDFrame that assume the method will be used on a DataFrame only
Suggested fix for documentation
"resultant DataFrame or Series"
It would be even better to get rid of the unnecessary "DataFrame or Series" and have some way to know whether this doc is displayed for DataFrame.convert_dtypes or Series.convert_dtypes
The text was updated successfully, but these errors were encountered:
Pandas version checks
main
hereLocation of the documentation
https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.convert_dtypes.html
Documentation problem
The dtype_backend parameter says: "Back-end data type applied to the resultant DataFrame" but
Series.convert_dtypes
returns a Series not a DataFrameOn a sidenote, there are a few more methods in
NDFrame
that assume the method will be used on a DataFrame onlySuggested fix for documentation
"resultant DataFrame or Series"
It would be even better to get rid of the unnecessary "DataFrame or Series" and have some way to know whether this doc is displayed for
DataFrame.convert_dtypes
orSeries.convert_dtypes
The text was updated successfully, but these errors were encountered: