Skip to content

Tag: python

Python Polars Parse Date from Epoch

How does one convert a column of i64 epoch strings into dates in polars? I’ve got a column of i64 representing seconds since epoch and I’d like to parse them into polars native datetimes. Answer Polars’ Datetime is represented as unix epoch in either, nanoseconds, microseconds or millisecond…