Fleshing out the data around parenthood

PHOTO EMBED

Tue May 21 2024 08:50:35 GMT+0000 (Coordinated Universal Time)

Saved by @Uncoverit #python

# Fleshing out the data around parenthood
df['N_minors_home'] = df['Kidhome'] + df['Teenhome']
df['Parent'] = np.where(df.N_minors_home> 0, 1, 0)
content_copyCOPY