-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
read_stata ignores index
parameter
#16342
Comments
What is |
@VincentLa Sorry, it's |
Attempting to take a stab at this issue. |
FYI I think @mogillies is working on this? Is that right? |
Awesome. Anyone at Pycon Sprints right now who is working on this issue? |
Looking at Gitter discussions I think @mogillies is working on it. I will look for something else :) |
@mogillies let me know if you're at Pycon right now and would be up for pairing! |
@TomAugspurger if the |
@jorisvandenbossche oh yeah, I guess we won't be breaking backwards compat :D |
Should we change to Index_col? |
Sure. I'm in the same room as you :) |
@mogillies yeah, if you would |
Sure. |
Just to clarify index param index not working
if index is not None: or (I don't think this is the case): if index is not None: |
Currently the keyword argument in
You are trying to solve the first one. But what we suggest is to also fix the second one and rename the |
Ensures index is set when requested when reading state dta file closes pandas-dev#16342
Ensures index is set when requested during reading of a Stata dta file Rename index to index_col for API consistency closes pandas-dev#16342
Ensures index is set when requested during reading of a Stata dta file Deprecates and renames index to index_col for API consistence closes pandas-dev#16342
Ensures index is set when requested during reading of a Stata dta file Deprecates and renames index to index_col for API consistence closes #16342
Ensures index is set when requested during reading of a Stata dta file Deprecates and renames index to index_col for API consistence closes pandas-dev#16342
Ensures index is set when requested during reading of a Stata dta file Deprecates and renames index to index_col for API consistence closes pandas-dev#16342
Code Sample, a copy-pastable example if possible
It should be like
read_stata('foo.stata').set_index('index')
Side-note, I think elsewhere we use
index_col
instead ofindex
.Output of
pd.show_versions()
master
The text was updated successfully, but these errors were encountered: