JamesJohnson
JamesJohnson6d ago

Receiving Error: Invalid Time

This morning I updated to Marimo 0.9.15 and now I'm receiving an "Error: Invalid time value" when trying to display an Ibis or a Polars dataframe that contains a timestamp column that is null. Here's some simple code that replicates what I'm seeing:
df = (
pl.date_range(date(2001, 1, 1), date(2001, 1, 3), eager=True)
.alias("date")
.to_frame()
)
df.with_columns(
pl.col("date").dt.timestamp().alias("timestamp_us"),
pl.col("date").dt.timestamp("ms").alias("timestamp_ms"),
pl.lit(None).cast(pl.Datetime).alias("test")
)
df = (
pl.date_range(date(2001, 1, 1), date(2001, 1, 3), eager=True)
.alias("date")
.to_frame()
)
df.with_columns(
pl.col("date").dt.timestamp().alias("timestamp_us"),
pl.col("date").dt.timestamp("ms").alias("timestamp_ms"),
pl.lit(None).cast(pl.Datetime).alias("test")
)
0 Replies
No replies yetBe the first to reply to this messageJoin