I have a csv file with one row of data with no header. Below is my code for importing data into a dataframe:
df2 = pd.read_csv(path2, header=0)
When I do read_csv it returns the following:
Empty DataFrame
Columns: [0.940456, 0.077893, 0.840178, 0.668612, 0.923643, 0.641833, 0.845249, 0.361605, 0.453943, 0.695509, 0.825763, 0.503687, 0.617303, 0.276637, 0.636244, 0.075744]
Index: []
df2.info() returns the following:
Index: 0 entries
Data columns (total 16 columns):
0.940456 0 non-null object
...
How do I set the first row as row instead of columns?
header=None?