Skip to content

How to validate Pandas data type "Int64"? #61

@alexeyabel

Description

@alexeyabel

Pandas recently introduced IntegerArrays which allow integer types to also store a NaN-like value pandas.NA.

Is there a way to use datatest to validate that a pandas.DataFrame's column is of type Int64, i.e. all values are of that type.

I tried df["mycolumn"].validate(pd.arrays.IntegerArray) and df["mycolumn"].validate(pd.Int64Dtype) to no avail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions