Code: Select all
import polars as pl
df = pl.from_repr("""
┌─────────────────────────┬─────────┐
│ timestamp ┆ group │
│ --- ┆ --- │
│ datetime[μs, UTC] ┆ str │
╞═════════════════════════╪═════════╡
│ 2009-04-18 11:30:00 UTC ┆ group_1 │
│ 2009-04-18 11:40:00 UTC ┆ group_1 │
│ 2009-04-18 11:50:00 UTC ┆ group_1 │
│ 2009-04-18 12:00:00 UTC ┆ group_2 │
│ 2009-04-18 12:10:00 UTC ┆ group_2 │
│ 2009-04-18 12:20:00 UTC ┆ group_1 │ #
Mobile version