Open shadab12py opened 3 months ago
Use df.corr(numeric_only=True)
Use df.corr(numeric_only=True)
numeric_columns = ['PassengerId', 'Survived', 'Pclass', 'Age', 'SibSp', 'Parch', 'Fare']
correlation_matrix = df[numeric_columns].corr()
use df.corr for numerical data only. The above code should work
this show this bug , ValueError: could not convert string to float: 'Braund, Mr. Owen Harris' . plz suggest a sol