From 15afddf067a7ea5b0ca75428d8f3091faa804a72 Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Tue, 14 Jan 2025 17:27:36 +0400 Subject: [PATCH] fixup --- narwhals/dataframe.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/narwhals/dataframe.py b/narwhals/dataframe.py index 32f117466..8d9d987eb 100644 --- a/narwhals/dataframe.py +++ b/narwhals/dataframe.py @@ -3629,9 +3629,8 @@ def _extract_compliant(self, arg: Any) -> Any: from narwhals.expr import Expr from narwhals.series import Series - if isinstance(arg, BaseFrame): # pragma: no cover - msg = "Binary operations between LazyFrames are not supported" - raise TypeError(msg) + if isinstance(arg, BaseFrame): + return arg._compliant_frame if isinstance(arg, Series): # pragma: no cover msg = "Binary operations between Series and LazyFrame are not supported." raise TypeError(msg)