Open
Description
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
- https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.name.html
- https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.pivot.html
Documentation problem
In the documentation, Series.name
is just required to be a Hashable
. When pandas
functions ask for a column label, however, it often asks for an str
, e.g. in DataFrame.pivot, where it says
columns: str or object or a list of str
Suggested fix for documentation
Use Hashable
everywhere to column labels as a function argument