I'm trying to read data from a textfile which consists of newline separated words I intend to use as the header for a separate csv file with no header.
I've loaded the textfile and dataset in via pandas but don't really know where to go from here.
names = pandas.read_csv('names.txt', header = None)
dataset = pandas.read_csv('dataset.csv, header = None')
The contents of the textfile look like this
dog
cat
sheep
...