I would like to execute this simple transformation in a more efficiente way.
df[\'amount\'] = df.apply(lambda row: 500 if row.amount > 500 else row.amount, axi