I'm using numpy to add to a new column baased off another column. I believe only 2 arguments are allowed but I need 3. Is this possible with an elif statement?
I need S3 to be "VM", CloudWatch to be "Disk", and everything else to go as "Other"
What I have:
data_1 = pd.read_csv('data.csv')
data_1['ADDED_COLUMN1'] = np.where(data_1.DIMENSION.isin(['S3', 'Glacier']),
'VM', 'Other')
Output:
S3 VM
Glacier VM
S3 VM
S3 VM
CloudWatch VM
Athena Other
What I want:
S3 VM
Glacier VM
S3 VM
S3 VM
CloudWatch Disk
Athena Other
How do I add 1 more argument to get this output?