Skip to content

Deprecated RangeIndex #762 #763

New issue

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

Closed
wants to merge 1 commit into from
Closed

Deprecated RangeIndex #762 #763

wants to merge 1 commit into from

Conversation

tseppelt
Copy link

@tseppelt tseppelt commented May 7, 2020

No description provided.

@kevinushey
Copy link
Collaborator

I think we need the PR to be backwards-compatible with older versions of pandas as well. Do older versions of Pandas also provide these members without the _ prefix?

I wonder if we can introspect on the installed version of pandas in some way?

@tseppelt
Copy link
Author

tseppelt commented May 7, 2020

As far as I understand the pandas code, the new attributes were introduced in this pull request in June 2019. Before June 2019 these members did not exist, I think.

@charlstown
Copy link

I have the same issue:
sys:1: FutureWarning: RangeIndex._* is deprecated and will be removed in a future version. Use RangeIndex.start instead
*start, stop step

The funny thing is, I didn't get the error at first but now every time I try to run py$dataframe I'm getting a fatal error.

@kevinushey
Copy link
Collaborator

>>> pandas.__version__
'0.24.2'
>>> index.start
AttributeError: 'RangeIndex' object has no attribute 'start'

So we definitely cannot just switch from _start to start -- we need to check which of the two exists and use that.

@kevinushey
Copy link
Collaborator

Fixed on master now.

@kevinushey kevinushey closed this May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants