In pyarrow we can just do:
>>> import pyarrow as pa
>>> pa.array([1,2,3])
<pyarrow.lib.Int64Array object at 0x7f566034e920>
[
1,
2,
3
]
This is very convenient and powerful, as it can infer most native python types, it's extremely useful when converting python objects to arrow.
Right now arro3 does not infer types:
>>> from arro3.core import Array, DataType
>>> Array([1, 2, 3], DataType.int32())
arro3.core.Array<Int32>
[
1,
2,
3,
]
In
pyarrowwe can just do:This is very convenient and powerful, as it can infer most native python types, it's extremely useful when converting python objects to arrow.
Right now arro3 does not infer types: