I have a csv file with the following columns:
id,name,age,sex
Followed by a lot of values for the above columns. I am trying to read the column names alone and
import pandas as pd data = pd.read_csv("data.csv") cols = data.columns