Skip to content

Commit 67803b5

Browse files
authored
Perf improvement on Polars (#340)
Iterate over the table rows with just `df.rows()`
1 parent 038f597 commit 67803b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/itables/datatables_format.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def datatables_rows(df, count=None, warn_on_unexpected_types=False, pure_json=Fa
110110
)
111111
except AttributeError:
112112
# Polars DataFrame
113-
data = list(df.iter_rows())
113+
data = df.rows()
114114
import polars as pl
115115

116116
has_bigints = any(

0 commit comments

Comments
 (0)