Get help from the marimo community

Updated 2 months ago

Receiving Error: Invalid Time

At a glance

A community member updated to Marimo 0.9.15 and is now receiving an "Error: Invalid time value" when trying to display an Ibis or a Polars dataframe that contains a timestamp column with null values. The community member provided a simple code example that replicates the issue. However, there are no comments from other community members, and no explicitly marked answer is provided.

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:
Plain Text
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")
)
Add a reply
Sign up and join the conversation on Discord