You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a pandera DataFrameSchema has an index with more than two levels, the reset_index method does not appear to work as expected. For example, the ability to drop a particular index using the method results in no index change.
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandera.
(optional) I have confirmed this bug exists on the main branch of pandera.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
In the example above, I would expected the modified schema to have an index with two levels unique_id2 and unique_id3 as it does when we try to drop an index level from a index with two levels.
Desktop (please complete the following information):
OS: macOS Sonoma 14.6.1
Version: pandera 20.2
Screenshots
Additional context
The text was updated successfully, but these errors were encountered:
Describe the bug
When a pandera
DataFrameSchema
has an index with more than two levels, thereset_index
method does not appear to work as expected. For example, the ability to drop a particular index using the method results in no index change.Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Expected behavior
In the example above, I would expected the modified schema to have an index with two levels
unique_id2
andunique_id3
as it does when we try to drop an index level from a index with two levels.Desktop (please complete the following information):
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: