pyarrow.date32#

pyarrow.date32()#

Create instance of 32-bit date (days since UNIX epoch 1970-01-01).

Examples

Create an instance of 32-bit date type:

>>> import pyarrow as pa
>>> pa.date32()
DataType(date32[day])

Create a scalar with 32-bit date type:

>>> from datetime import date
>>> pa.scalar(date(2012, 1, 1), type=pa.date32())
<pyarrow.Date32Scalar: datetime.date(2012, 1, 1)>