pola-rs / polars

Dataframes powered by a multithreaded, vectorized query engine, written in Rust
https://docs.pola.rs
Other
27.24k stars 1.67k forks source link

Add support for datetime variables? #16295

Open JacobElder opened 1 month ago

JacobElder commented 1 month ago

Description

Pandas has support for datetime data class in DateTime module, but it seems Polars does not. Could Polars potentially add support for datetime data class?

Thank you.

MarcoGorelli commented 1 month ago

Hi, could you give an example of what you want to do please?

Happy to help implement what's needed, but I don't understand the request, sorry

pandas has Timestamp, which subclasses the stdlib datetime. Is that what you're asking for? If so, I don't think you need it - the standard library datetime, or pl.datetime, should be enough