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
import pandas as pd df=pd.DataFrame({"a":[1,2,3],"b":[4,5,6],"c":[7,8,9]}).set_index(["a","b"]) l=list(df.index) l[0]=("faz","boo") df.index=l print df # all good l[0]=["faz","boo"] df.index=l print df # badness
If this acceptable usage and index entries must be immutable, failing early would be good.
Note: If you get an UnboundLocalError Exception, That's an un-related issue, PR fix as soon as travis is green.
UnboundLocalError
The text was updated successfully, but these errors were encountered:
27e34a4
No branches or pull requests
If this acceptable usage and index entries must be immutable, failing early would be good.
Note: If you get an
UnboundLocalError
Exception, That's an un-related issue, PR fix as soonas travis is green.
The text was updated successfully, but these errors were encountered: