File size: 246 Bytes
2095da4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import datasets
import pandas as pd
dfs = []
for i in range(10):
dfs.append(
datasets.ArrowReader.read_table(f'segment_{i}/dataset.arrow').to_pandas()
)
full_df = pd.concat(dfs, ignore_index=True)
full_df.to_csv('dataset.csv')
|