'''if andrew_ramirez[andrew_ramirez['Datacenter'] == 'ACT1']:
andrew_ramirez[andrew_ramirez['payout']] * .25
elif andrew_ramirez[andrew_ramirez['Datacenter'] == 'ATL2']:
andrew_ramirez[andrew_ramirez['payout']] * .25
else:
andrew_ramirez[andrew_ramirez['payout']] * 1
ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().'''
I am trying to find the most efficient way to manipulate the 'payout' column based on the corresponding "Datacenter" cell within the row. Thank you in advance!
numpy.where
andnumpy.select
- Paul H