import csv
dataset_1 = []
dataset_2 = []
with open('wikipedia.csv', 'r') as f:
    csvreader = csv.reader(f)
    for row in csvreader:
        dataset_1.append(row)
with open('planet_new.csv', 'r') as g:
    csvreader = csv.reader(g)
    for row in csvreader:
        dataset_2.append(row)
header_1 = dataset_1[0]
planet_data_1 = dataset_1[1:]
header_2 = dataset_2[0]
planet_data_2 = dataset_2[1:]
headers = header_1 + header_2
planet_data = []
for index, data_row in enumerate(planet_data_1):
    planet_data.append(planet_data_1[index] + planet_data_2[index])
with open('final_stars.csv', 'a+') as f:
    csvwriter = csv.writer(f)
    csvwriter.writerow(headers)
    csvwriter.writerows(planet_data)

6660ccec3422691b18cb0a683cd0b375515e7024
<mask token>

<mask token>
with open('wikipedia.csv', 'r') as f:
    csvreader = csv.reader(f)
    for row in csvreader:
        dataset_1.append(row)
with open('planet_new.csv', 'r') as g:
    csvreader = csv.reader(g)
    for row in csvreader:
        dataset_2.append(row)
<mask token>
for index, data_row in enumerate(planet_data_1):
    planet_data.append(planet_data_1[index] + planet_data_2[index])
with open('final_stars.csv', 'a+') as f:
    csvwriter = csv.writer(f)
    csvwriter.writerow(headers)
    csvwriter.writerows(planet_data)

<mask token>
dataset_1 = []
dataset_2 = []
with open('wikipedia.csv', 'r') as f:
    csvreader = csv.reader(f)
    for row in csvreader:
        dataset_1.append(row)
with open('planet_new.csv', 'r') as g:
    csvreader = csv.reader(g)
    for row in csvreader:
        dataset_2.append(row)
header_1 = dataset_1[0]
planet_data_1 = dataset_1[1:]
header_2 = dataset_2[0]
planet_data_2 = dataset_2[1:]
headers = header_1 + header_2
planet_data = []
for index, data_row in enumerate(planet_data_1):
    planet_data.append(planet_data_1[index] + planet_data_2[index])
with open('final_stars.csv', 'a+') as f:
    csvwriter = csv.writer(f)
    csvwriter.writerow(headers)
    csvwriter.writerows(planet_data)

import csv
dataset_1 = []
dataset_2 = []
with open('wikipedia.csv', 'r') as f:
    csvreader = csv.reader(f)
    for row in csvreader:
        dataset_1.append(row)
with open('planet_new.csv', 'r') as g:
    csvreader = csv.reader(g)
    for row in csvreader:
        dataset_2.append(row)
header_1 = dataset_1[0]
planet_data_1 = dataset_1[1:]
header_2 = dataset_2[0]
planet_data_2 = dataset_2[1:]
headers = header_1 + header_2
planet_data = []
for index, data_row in enumerate(planet_data_1):
    planet_data.append(planet_data_1[index] + planet_data_2[index])
with open('final_stars.csv', 'a+') as f:
    csvwriter = csv.writer(f)
    csvwriter.writerow(headers)
    csvwriter.writerows(planet_data)
