data-science-types icon indicating copy to clipboard operation
data-science-types copied to clipboard

Dataframe.reset_index only allows inplace=False

Open fabiencelier opened this issue 4 years ago • 0 comments

Looks like stubs only allow inplace=True.

    @overload
    def reset_index(self, drop: bool = ...) -> DataFrame: ...
    @overload
    def reset_index(self, inplace: Literal[True], drop: bool = ...) -> None: ...

inplace=False is indeed the default behavior and there is no need to specify it but it should still be allowed.

fabiencelier avatar Aug 10 '20 19:08 fabiencelier