pyarrow.asarray#
- pyarrow.asarray(values, type=None)#
Convert to pyarrow.Array, inferring type if not provided.
- Parameters:
- values
array-like This can be a sequence, numpy.ndarray, pyarrow.Array or pyarrow.ChunkedArray. If a ChunkedArray is passed, the output will be a ChunkedArray, otherwise the output will be a Array.
- type
strorDataType Explicitly construct the array with this type. Attempt to cast if indicated type is different.
- values
- Returns:
- arr
ArrayorChunkedArray
- arr