logoalt Hacker News

bmitc • yesterday at 2:59 PM • 2 replies • view on HN

There are awkward things. For example, if you ingest a nanosecond resolution timestamp, there's no way to re-export that out of the Polars dataframe with nanosecond resolution.


Replies

simon-b • yesterday at 8:33 PM

I'm not sure this is true e.g. you can specify schema `pl.Datetime("ns")`. That survives roundtrip to/from parquet in my experience. True though that the default is `us` whereas pandas defaults to `ns`.

https://docs.pola.rs/api/python/stable/reference/expressions...

knottn • yesterday at 8:18 PM

Feels like a feature to me. You could just keep the original timestamp as a string.