pandas Series.reset_index() returning wrong type when index of Series is a MultiIndex #393
Labels
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
typestub
Issue relating to our bundled type stubs
Expected behaviour
No error
Actual behaviour
reports for line 5
The issue here is that
reset_index()
can return aSeries
orDataFrame
dependent on whether the parameterdrop
isTrue
orFalse
. (It isFalse
by default). In the example above, it is returning aDataFrame
The text was updated successfully, but these errors were encountered: