Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: read DateTime fields with millisecond accuracy #111

Merged

Conversation

jorisvandenbossche
Copy link
Member

This came up in the geopandas tests. WIP: I still need to add a test for this (but because we don't yet have support for writing datetimes, that's a bit harder)

pyogrio/_io.pyx Outdated Show resolved Hide resolved
@jorisvandenbossche jorisvandenbossche marked this pull request as ready for review June 3, 2022 06:46
Copy link
Member

@brendan-ward brendan-ward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jorisvandenbossche !

Should we add a note to known_issues.md that datetime is only supported at a millisecond resolution, even though it is later cast to datetime64[ns] when read into a data frame?

@jorisvandenbossche
Copy link
Member Author

I added a small note. That could then be updated when support for writing is added (to also indicate that sub-millisecond values will be lost)

@brendan-ward brendan-ward merged commit dd67c6b into geopandas:main Jun 5, 2022
brendan-ward added a commit that referenced this pull request Jun 5, 2022
@jorisvandenbossche jorisvandenbossche deleted the read-datetime-millisecond branch June 5, 2022 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants