I am using pandas to read a heavy csv file as below
import pandas
csv_file_path = "/Users/import.csv"
csv_data = pandas.read_csv(csv_file_path, names=data_mapping_field_values)
When i use csv_data.columns
, i got below
Index([u'Domain', u'RefSubNets', u'RefIPs', u'IDN_Domain'], dtype='object')
But i want only a list of columns like below
[u'Domain', u'RefSubNets', u'RefIPs', u'IDN_Domain']
How can we access only columns of a csv file as a list using pandas?