use pyarrow
Browse files- binding_affinity.py +2 -2
binding_affinity.py
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
import huggingface_hub
|
18 |
import pandas as pd
|
19 |
import os
|
20 |
-
|
21 |
import datasets
|
22 |
|
23 |
|
@@ -167,5 +167,5 @@ class BindingAffinity(datasets.ArrowBasedBuilder):
|
|
167 |
def _generate_tables(
|
168 |
self, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
169 |
):
|
170 |
-
df =
|
171 |
yield split, df
|
|
|
17 |
import huggingface_hub
|
18 |
import pandas as pd
|
19 |
import os
|
20 |
+
import pyarrow.parquet as pq
|
21 |
import datasets
|
22 |
|
23 |
|
|
|
167 |
def _generate_tables(
|
168 |
self, filepath, split # method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
169 |
):
|
170 |
+
df = pq.read_table(filepath)
|
171 |
yield split, df
|