Skip to content

Commit 7728c70

Browse files
committed
compressed kg with read few only available in polars
1 parent 03854cc commit 7728c70

File tree

1 file changed

+1
-1
lines changed
  • dicee/read_preprocess_save_load_kg

1 file changed

+1
-1
lines changed

dicee/read_preprocess_save_load_kg/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def read_with_polars(data_path, read_only_few: int = None, sample_triples_ratio:
156156
# (1) Load the data.
157157
#try:
158158
if ".zst" in data_path:
159-
df= polars.read_csv(data_path)
159+
df= polars.read_csv(data_path,n_rows=None if read_only_few is None else read_only_few)
160160
else:
161161
df = polars.read_csv(data_path,
162162
has_header=False,

0 commit comments

Comments
 (0)