Amazon interview question

6. Pandas Data Manipulation (Python)

Interview Answer

Anonymous

23 June 2025

df.loc[df['job'] == 'housemaid', 'pdays'] = df['pdays'].apply(lambda x: x * 2)