We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_eager_namespace
1 parent bf18326 commit 73656f1Copy full SHA for 73656f1
narwhals/utils.py
@@ -1402,11 +1402,11 @@ def is_compliant_expr(
1402
return hasattr(obj, "__narwhals_expr__")
1403
1404
1405
-# NOTE: Temporary - just to introduce a path for the Arrow WIP
+# NOTE: Temporary - just to introduce a path for the (Arrow|PandasLike) WIP
1406
def is_eager_namespace(
1407
obj: EagerNamespace[EagerDataFrameT, EagerSeriesT] | Any,
1408
) -> TypeIs[EagerNamespace[EagerDataFrameT, EagerSeriesT]]:
1409
- return type(obj).__name__ == "ArrowNamespace"
+ return type(obj).__name__ in {"ArrowNamespace", "PandasLikeNamespace"}
1410
# return all(hasattr(obj, name) for name in ("selectors", "_expr", "_series")) # noqa: ERA001
1411
1412
0 commit comments