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.

fix: bump narwhals to 1.12.0 (#2742)

Myles Scolnick1776191127d8
diff --git a/pyproject.toml b/pyproject.toml
index 58684ec582..6913b056a4 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -42,7 +42,7 @@ dependencies = [
# required dependency in Starlette for SessionMiddleware support
"itsdangerous>=2.0.0",
# for dataframe support
- "narwhals>=1.9.0",
+ "narwhals>=1.12.0",
# for cell formatting; if user version is not compatible, no-op
# so no lower bound needed
"ruff",
@@ -147,7 +147,7 @@ dependencies = [
# Types for mypy
"panel~=1.5.3",
"polars~=1.9.0",
- "narwhals>=1.9.0",
+ "narwhals>=1.12.0",
"matplotlib>=3.8.0",
"pyarrow-stubs>=17.0",
"pandas-stubs>=1.5.3.230321",
diff --git a/tests/_plugins/ui/_impl/tables/test_pandas_table.py b/tests/_plugins/ui/_impl/tables/test_pandas_table.py
index 985c85463f..fa14129fa3 100644
--- a/tests/_plugins/ui/_impl/tables/test_pandas_table.py
+++ b/tests/_plugins/ui/_impl/tables/test_pandas_table.py
@@ -738,7 +738,7 @@ class TestPandasTableManager(unittest.TestCase):
summary = manager.get_summary("B")
assert summary.nulls == 3
assert summary.total == 3
- assert summary.unique == 1
+ assert summary.unique is None
def test_dataframe_with_mixed_types(self) -> None:
df = pd.DataFrame({"A": [1, "two", 3.0, True]})