I have this excel function where it says:
=IF(id ="pre_stage";"a";IF(id="static";"b";"c"))
I tried to implement this in my python script to create a new column.
df['type'] = df['id'].apply(lambda x: 'a' if x == 'pre_stage' else 'b')
I miss to put the second condition, where if the 'id' is 'static' then the type should be 'b', and other will be 'c'.
How is the script supposed to write?
Thank you