Datasets:
0x22almostEvil
commited on
Commit
•
62df3ff
1
Parent(s):
f41b78f
Brrrr
Browse files- source/merge_datasets.py +11 -9
source/merge_datasets.py
CHANGED
@@ -1,15 +1,17 @@
|
|
1 |
import pandas as pd
|
2 |
|
|
|
|
|
3 |
# list of all the csv files
|
4 |
csv_files = [
|
5 |
-
"en-wikihow-qa-dataset-
|
6 |
-
"ru-wikihow-qa-dataset-
|
7 |
-
"pt-wikihow-qa-dataset-
|
8 |
-
"nl-wikihow-qa-dataset-
|
9 |
-
"it-wikihow-qa-dataset-
|
10 |
-
"fr-wikihow-qa-dataset-
|
11 |
-
"es-wikihow-qa-dataset-
|
12 |
-
"de-wikihow-qa-dataset-
|
13 |
]
|
14 |
|
15 |
# create an empty dataframe to hold the merged data
|
@@ -21,4 +23,4 @@ for file in csv_files:
|
|
21 |
merged_data = pd.concat([merged_data, data], ignore_index=True)
|
22 |
|
23 |
# write the merged data to a new csv file
|
24 |
-
merged_data.to_csv("multilingial-wikihow-qa-dataset-
|
|
|
1 |
import pandas as pd
|
2 |
|
3 |
+
n = 2
|
4 |
+
total_n = 16
|
5 |
# list of all the csv files
|
6 |
csv_files = [
|
7 |
+
"en-wikihow-qa-dataset-2k.csv",
|
8 |
+
"ru-wikihow-qa-dataset-2k.csv",
|
9 |
+
"pt-wikihow-qa-dataset-2k.csv",
|
10 |
+
"nl-wikihow-qa-dataset-2k.csv",
|
11 |
+
"it-wikihow-qa-dataset-2k.csv",
|
12 |
+
"fr-wikihow-qa-dataset-2k.csv",
|
13 |
+
"es-wikihow-qa-dataset-2k.csv",
|
14 |
+
"de-wikihow-qa-dataset-2k.csv"
|
15 |
]
|
16 |
|
17 |
# create an empty dataframe to hold the merged data
|
|
|
23 |
merged_data = pd.concat([merged_data, data], ignore_index=True)
|
24 |
|
25 |
# write the merged data to a new csv file
|
26 |
+
merged_data.to_csv("multilingial-wikihow-qa-dataset-16k.csv", index=False)
|