Skip to content

ENH: replace uses of np.isscalar with pd.lib.isscalar #8708

Closed
@immerrr

Description

@immerrr

np.isscalar doesn't detect a lot of types that are scalar from pandas point of view, such as dates, times, None, pd.Period, so pd.lib.isscalar should be preferred instead.

Adding the issue as requested in #8706.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Compatpandas objects compatability with Numpy or Python functionsInternalsRelated to non-user accessible pandas implementation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions