We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
main
https://pandas.pydata.org/docs/dev/reference/api/pandas.DatetimeIndex.html
Docs for DatetimeIndex say:
DatetimeIndex
data: array-like (1-dimensional), optional Optional datetime-like data to construct index with.
But data isn't optional:
data
pd.DatetimeIndex() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<omitted>\site-packages\pandas\core\indexes\datetimes.py", line 321, in __new__ raise cls._scalar_data_error(data) TypeError: DatetimeIndex(...) must be called with a collection of some kind, None was passed
The word "optional" should be removed from that place in the documentation.
The text was updated successfully, but these errors were encountered:
take
Sorry, something went wrong.
DOC: GH48097 remove optional from data for DatetimeIndex docs (#48118)
a6aaeb6
fix for issue #48097
DOC: GH48097 remove optional from data for DatetimeIndex docs (pandas…
579eab8
…-dev#48118) fix for issue pandas-dev#48097
nealxm
Successfully merging a pull request may close this issue.
Pandas version checks
main
hereLocation of the documentation
https://pandas.pydata.org/docs/dev/reference/api/pandas.DatetimeIndex.html
Documentation problem
Docs for
DatetimeIndex
say:data: array-like (1-dimensional), optional
Optional datetime-like data to construct index with.
But
data
isn't optional:Suggested fix for documentation
The word "optional" should be removed from that place in the documentation.
The text was updated successfully, but these errors were encountered: