This content is protected, please login and enroll course to view this content!
2 Replies to “Survival chances in an accident”
pd.get_dummies(df[‘Weekday_of_Collision’])
or
dummies1=pd.get_dummies(df[‘Weekday_of_Collision’])
dummies1
this commnads are not working in Google colab to convert string to integers
pd.get_dummies(df[‘Weekday_of_Collision’])
or
dummies1=pd.get_dummies(df[‘Weekday_of_Collision’])
dummies1
this commnads are not working in Google colab to convert string to integers
It is showing True and Fales instead of 0 and 1
pd.get_dummies(df[‘Weekday_of_Collision’])
or
dummies1=pd.get_dummies(df[‘Weekday_of_Collision’])
dummies1
this commnads are not working in Google colab to convert string to integers
pd.get_dummies(df[‘Weekday_of_Collision’])
or
dummies1=pd.get_dummies(df[‘Weekday_of_Collision’])
dummies1
this commnads are not working in Google colab to convert string to integers
It is showing True and Fales instead of 0 and 1