You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Convert relevant columns to numeric, replacing any errors with NaN and then with 0
for col in df_combined.columns:
if 'struggling' in col.lower() or 'getting by' in col.lower() or 'starting out' in col.lower() or 'middle class' in col.lower() or 'comfortable' in col.lower() or 'doing well' in col.lower() or 'prosperous' in col.lower() or 'wealthy' in col.lower() or 'affluent' in col.lower():