Skip to content

Commit 491bdd7

Browse files
dob't import directly
1 parent 1a53a11 commit 491bdd7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

narwhals/_spark_like/expr.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,7 @@ def map_batches(
423423
raise NotImplementedError(msg)
424424

425425
def func(df: SparkLikeLazyFrame) -> list[Column]:
426-
import pandas as pd
427-
426+
pd = get_pandas()
428427
F = self._F
429428

430429
native_cols = self(df)

0 commit comments

Comments
 (0)