Skip to content

Commit c689161

Browse files
committed
refactor: Simplify polars impl
The module already has a top-level `pl` import
1 parent 4805551 commit c689161

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

narwhals/_polars/dataframe.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@ def from_numpy(
119119
f"Got {type(schema)}."
120120
)
121121
raise TypeError(msg)
122-
native = context._implementation.to_native_namespace().from_numpy(
123-
data, schema=schema_pl
124-
)
122+
native = pl.from_numpy(data, schema_pl)
125123
return cls(
126124
native, backend_version=context._backend_version, version=context._version
127125
)

0 commit comments

Comments
 (0)