-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
IndexError: tuple index out of range with pandas 0.25. #14992
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
Looks like this commit changed how the indices were assigned by removing the |
Downgrading to the previous versions doesn't help! There might be more issues IMHO ¯\_(ツ)_/¯ |
This is actually due to the upgrade to pandas 0.25:
This now prints |
@anntzer downgrading to Pandas |
I reported an issue on pandas repo here |
@story645 I am not fully sure we can provide an upstream fix (or at least not long term).
|
@Foadsf Can you please paste a minimal copy-pastable example into this issue? SO links rot over time. |
@jorisvandenbossche wondering then if pandas should be throwing a warning or something since |
What does np.newaxis give if we use that instead? |
Dear @tacaswell the Pandas guys were kind to edit my post here and add clear and concise examples demonstrating the issue. |
@Foadsf that's a reproducible example for just the pandas side, but I think @tacaswell is looking for an example that shows the error with matplotlib. Something like
|
Thanks @jorisvandenbossche @Foadsf in general, you will get much better responses from projects if you provide an easily understandable and testable examples (see http://www.sscce.org/ for a longer discussion as to why). The information we ask for in the issue template to guide you so we can help you as easily as possible. |
@jklymak |
prints
This seems rather inconsistent. Marking as release critical, because something needs to be done here. |
@ImportanceOfBeingErnest yes, that is certainly inconsistent, and "kind of" a regression in pandas (which I also propose to fix in pandas itself for 0.25.1, see pandas-dev/pandas#27775 (comment)) But in any case, I think it would be good for matplotlib to not rely on this indexing aspect to convert a pandas Index into a 2D array-like. |
Bug report
Bug summary
I have reported the issue in details here
basically after an upgrade to
3.1.1
it drops the error:all other details inclduing the CSV file and code are in the above link.
The text was updated successfully, but these errors were encountered: