Answers for "Convert each column to Boolean type"

0

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()
Posted by: Guest on April-13-2021

Code answers related to "Convert each column to Boolean type"

Browse Popular Code Answers by Language