Working on some simple data manipulation in Pandas and uncertain how to do something along the lines of the logic defined below. I'm trying to change values in Column C based on values in Column A in this sample idea. Suggestions?
df = pd.DataFrame({'A': [0, 1, 2, 3, 4],
'B': [5, 6, 7, 8, 9],
'C': ['a', 'b', 'c', 'd', 'e']})
if df['A'] < 2:
df['C'] = "Small"
else:
df['C'] = "Big"