Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Adding IntoSeries which is now implemented in narwhals (#4215)

xeniumbe37b1a367bf
diff --git a/marimo/_data/series.py b/marimo/_data/series.py
index bb927b4a75..594bad0c57 100644
--- a/marimo/_data/series.py
+++ b/marimo/_data/series.py
@@ -6,15 +6,14 @@ from dataclasses import dataclass
from typing import Any, cast
import narwhals.stable.v1 as nw
+from narwhals.typing import IntoSeries
from marimo._utils.narwhals_utils import (
assert_narwhals_series,
unwrap_py_scalar,
)
-# TODO: use series type when released
-# https://github.com/narwhals-dev/narwhals/pull/991
-DataFrameSeries = Any
+DataFrameSeries = IntoSeries
@dataclass