data-science-types
data-science-types copied to clipboard
Dataframe.reset_index only allows inplace=False
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.