Skip to content

Make Array infer the types #456

Description

@surister

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,
]

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