Skip to content

TYP: Improve typing on pandas.core.algorithms.duplicated() #42604

Open
@Dr-Irv

Description

@Dr-Irv

Per comment in PR #41985 :
https://github.com/pandas-dev/pandas/pull/41985/files/c14bca375fc1f88b0ebc3fdf9d94bab568d1066a#r672213029

PR updated the docs, which reflected that pandas.core.algorithms.duplicated() does accept a Series as an argument:

>>> import pandas as pd
>>> from pandas.core.algorithms import duplicated
>>> s=pd.Series([1,2,3,4,2,3,1])
>>> duplicated(s)
array([False, False, False, False,  True,  True,  True])

So the input type should be updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Typingtype annotations, mypy/pyright type checkingduplicatedduplicated, drop_duplicates

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions