I had put a file into pandas dataframe, i have 2 header rows here. which goes by column-1,response ; column-2, response etc.
Column -1 Column-2 Which of the following Marvel films have you seen? Please select all that apply.
Response Response Avengers Iron Man
Yes No Avengers Iron Man
Yes No Avengers Iron Man
Yes Yes Avengers Iron Man
Yes Yes Avengers Iron Man
Yes No Avengers Iron Man
This is what i used; to merge both the header rows as 1 column. But, this give me a multi header index .
data = pd.read_csv("D:\\Users\\703228597\\Documents\\python\\StarWars.csv" ,header = [0,1],encoding= 'unicode_escape')
If i want to perform EDA's, what is the Column_name i use ? since, it is a multi-index header
data1[data1.Column_name < 0]