My output is [['Cats'],['Dogs']]
I want it as ['Cats', 'Dogs'].
How can I do it?
I got this output while converting rows from CSV file to a list using
df = [list(row) for row in a.values]
where a is read_csv.
My output is [['Cats'],['Dogs']]
I want it as ['Cats', 'Dogs'].
How can I do it?
I got this output while converting rows from CSV file to a list using
df = [list(row) for row in a.values]
where a is read_csv.