Skip to content

Add initial support for writing fractional seconds#337

Draft
belegdol wants to merge 2 commits into
Roche:devfrom
belegdol:write_fractional_seconds
Draft

Add initial support for writing fractional seconds#337
belegdol wants to merge 2 commits into
Roche:devfrom
belegdol:write_fractional_seconds

Conversation

@belegdol
Copy link
Copy Markdown
Contributor

This is initial work towards implementing issue #336. The current status is:

  • pandas backend with pandas-3.0.3 passes tests
  • polars backend with pandas-3.0.3 fails the fractional seconds test because the datetime is still truncated to whole seconds. I need to find out why.
  • pandas-2.3.3 fails because it tries to use the vectorised function on the datetime object column which obviously fails. I am not sure why that is.

pandas with pandas-3.0.3 passes tests
Now "only" three out 100 test datetime values fail the fractional seconds xpt write test. All are beyond year 2250 and thus beyond the range in which microsecond precision is reliable using 64-bit float.
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.

1 participant