Skip to content

use_arrow=True vs False: different handling of date columns from shapefiles #262

@theroggy

Description

@theroggy

There are different ways a date column is handled now:

  • If use_arrow=False, (the default), a date column is returned as dtype "datetime64".
  • If use_arrow=True, a date column is returned as dtype "object" with datetime.date objects as data values.
  • When fiona is used, a date column is returned as dtype "object" with datetime.date objects as data values, like when arrow=True.

Not sure what is the way to go, but probably it would be better if the behaviour is the same.

Additional complication: columns of type "datetime64" are written by pyogrio to a column of Date type (tested with shapefile), while "object" columns with datetime.date values seem to be written as a "String" column.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions