From 908bcbe6605180e39461d4241644ddac7ab27549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dea=20Mar=C3=ADa=20L=C3=A9on?= Date: Sun, 1 Dec 2024 11:29:24 +0100 Subject: [PATCH 1/2] Perf improvement --- src/itables/datatables_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/itables/datatables_format.py b/src/itables/datatables_format.py index 5fb3b861..727b05b1 100644 --- a/src/itables/datatables_format.py +++ b/src/itables/datatables_format.py @@ -110,7 +110,7 @@ def datatables_rows(df, count=None, warn_on_unexpected_types=False, pure_json=Fa ) except AttributeError: # Polars DataFrame - data = list(df.iter_rows()) + data = list(df.rows()) import polars as pl has_bigints = any( From 8db2c15a42749e68d10d6aace0e5aaef1f2a51a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dea=20Mar=C3=ADa=20L=C3=A9on?= Date: Sun, 1 Dec 2024 12:57:03 +0100 Subject: [PATCH 2/2] correcting --- src/itables/datatables_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/itables/datatables_format.py b/src/itables/datatables_format.py index 727b05b1..ee0a7f26 100644 --- a/src/itables/datatables_format.py +++ b/src/itables/datatables_format.py @@ -110,7 +110,7 @@ def datatables_rows(df, count=None, warn_on_unexpected_types=False, pure_json=Fa ) except AttributeError: # Polars DataFrame - data = list(df.rows()) + data = df.rows() import polars as pl has_bigints = any(