Skip to content

pd.core.frame.set_index stubbing is not accurate #780

Closed as not planned
Closed as not planned
@stdedos

Description

@stdedos

@overload
def set_index(
self,
keys: Label
| Series
| Index
| np.ndarray
| Iterator[HashableT]
| list[HashableT],
*,
drop: _bool = ...,
append: _bool = ...,
verify_integrity: _bool = ...,
inplace: Literal[True],
) -> None: ...
@overload
def set_index(
self,
keys: Label
| Series
| Index
| np.ndarray
| Iterator[HashableT]
| list[HashableT],
*,
drop: _bool = ...,
append: _bool = ...,
verify_integrity: _bool = ...,
inplace: Literal[False] = ...,
) -> DataFrame: ...

#154 had the right idea, but then #151 sorta-reverted it

Is there plans to partially revert at least these lines back to what they were?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs InfoClarification about behavior needed to assess issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions