pyarrow.infer_type#

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

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

Parameters:
valuesarray-like

Sequence to infer type from.

maskndarray (booltype), optional

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

from_pandasbool, defaultFalse

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

Returns:
typeDataType