Convert each column to Boolean type code example
Example: Convert each column to Boolean type
df1['Have you seen any of the 6 films in the Star Wars franchise?']=df1['Have you seen any of the 6 films in the Star Wars franchise?'].map({'Yes':True,'No':False})
df1['Do you consider yourself to be a fan of the Star Wars film franchise?'] = df1['Do you consider yourself to be a fan of the Star Wars film franchise?'].map({'Yes':True,'No':False})
df1.head()