pyarrow.infer_type#

pyarrow.infer_type(values, mask=None, from_pandas=False)#

Attempt to infer Arrow data type that can hold the passed Python sequence type in an Array object

Parameters:
valuesarray-like

Sequence to infer type from.

maskndarray (bool type), optional

Optional exclusion mask where True marks null, False non-null.

from_pandasbool, default False

Use pandas’s NA/null sentinel values for type inference.

Returns:
typeDataType