BUG: KeyError: 0
when running .info()
on a DataFrame with integer column names that do not form a consecutive series starting at 0
#37408
Labels
Duplicate Report
Duplicate issue or pull request
Uh oh!
There was an error while loading. Please reload this page.
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Problem description
Stack trace:
It seems that this error arises when calling
.info()
on any DataFrame that has at least one integer column name unless the sorted column names form a sequence of consecutive integers starting at 0.Expected Output
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: