How to prevent the following? When I load a file with pd.read_csv()
, the first line gets unwantedly treated as a header (list of column names):
import pandas as pd
data = pd.read_csv('namefile',sep=' ')
print(data)
and only the second line onwards gets treated as the data (vector = np.array(data)
).