|
import pandas as pd |
|
|
|
|
|
csv_files = [ |
|
"en-wikihow-qa-dataset-1k.csv", |
|
"ru-wikihow-qa-dataset-1k.csv", |
|
"pt-wikihow-qa-dataset-1k.csv", |
|
"nl-wikihow-qa-dataset-1k.csv", |
|
"it-wikihow-qa-dataset-1k.csv", |
|
"fr-wikihow-qa-dataset-1k.csv", |
|
"es-wikihow-qa-dataset-1k.csv", |
|
"de-wikihow-qa-dataset-1k.csv" |
|
] |
|
|
|
|
|
merged_data = pd.DataFrame() |
|
|
|
|
|
for file in csv_files: |
|
data = pd.read_csv(file) |
|
merged_data = pd.concat([merged_data, data], ignore_index=True) |
|
|
|
|
|
merged_data.to_csv("multilingial-wikihow-qa-dataset-8k.csv", index=False) |
|
|