import pandas as pd
import numpy as np
colors = np.array(['blue','white', 'black', 'blue','white', 'black'])
money = np.array(['666', '777', '888','100', '300', '200'])
df = pd.DataFrame({'AAA': colors, 'BBB': money})
print(df)
hello,
what i want basically: where the row equals black, multiply the values on column BBB by 5, where the row equals white, multiply the values on column BBB by 10, and where the row equals blue, divide the values on column BBB by 7
thank you