-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
IndexError: index out of bounds for large Series with MultiIndex #5727
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
Comments
thanks for the report! |
pls update to master and give a try..thanks for the report |
Works great, thanks a lot. |
There seems to be another problem when assigning value on index to large arrays. I am on current master. import pandas as pd
import numpy as np
n = 3500000
arrays = [range(n), np.empty(n)]
index = pd.MultiIndex.from_tuples(zip(*arrays))
s = pd.Series(np.zeros(n), index=index)
s[s==0] = 1 with traceback
|
I have a similar problem. Can anyone please help? import pandas as pd I get this error: |
ok post pd.show_versions() |
It was my mistake, I realized!! I had not converted df to a dataframe. It was a series. But the error was misleading. Googling it brought me right here. Thank you for your quick reply. |
I am on
0.13.0rc1-64-gceec8bf
(master). I get theIndexError
when trying to print large dataframe with MultiIndex full of NaNs. Following script raises the errorAnd here is a Traceback
The text was updated successfully, but these errors were encountered: