Skip to content

Missing specialization for to_numpy for Series[float] and Series[int] #1727

@cderemble

Description

@cderemble

For Series[float] and Series[int], the overloaded to_numpy functions are not expecting a np.dtype for the dtype arg. Maybe overloads missing ?

To Reproduce
Pyright will report an error for this line

pd.Series(np.empty(0, np.dtype("f8"))).to_numpy(dtype=np.dtype("f8"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions