[ Web Proxy ]
URL:
Viewing: https://arrow.apache.org/docs/python/generated/pyarrow.date32.html [Back]  [Original]

pyarrow.date32 — Apache Arrow v25.0.1
Back to top
Search the docs ...:

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)>

Web Proxy Viewer  |  New URL  |  Original Page