We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pd.RangeIndex
range
Describe the bug Both according to the docs and the implementation it is valid to pass a python range object as the first argument to pd.RangeIndex
To Reproduce
import pandas as pd pd.RangeIndex(range(5)) # mypy: arg-type – Argument 1 to "RangeIndex" has incompatible type "range"
Please complete the following information:
The text was updated successfully, but these errors were encountered:
Would need to add range here
pandas-stubs/pandas-stubs/core/indexes/range.pyi
Line 30 in 9c301b3
__new__
Sorry, something went wrong.
(and probably also for __new__)
We actually don't need __new__() here, so we should delete it.
__new__()
Successfully merging a pull request may close this issue.
Describe the bug
Both according to the docs and the implementation it is valid to pass a python
range
object as the first argument topd.RangeIndex
To Reproduce
Please complete the following information:
The text was updated successfully, but these errors were encountered: