We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in the day 45 while doing groupby of 'Title and Survived' Error is occuring because of datatype.
Error can be solved by using this code.
`df['Survived'] = pd.to_numeric(df['Survived'], errors='coerce') # Convert to numeric, coerce errors to NaN
result = df.groupby('Title')['Survived'].mean().sort_values(ascending=False)
result.head()`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
in the day 45 while doing groupby of 'Title and Survived' Error is occuring because of datatype.
Error can be solved by using this code.
`df['Survived'] = pd.to_numeric(df['Survived'], errors='coerce') # Convert to numeric, coerce errors to NaN
result = df.groupby('Title')['Survived'].mean().sort_values(ascending=False)
result.head()`
The text was updated successfully, but these errors were encountered: