Question d’entretien chez Spotify

Conditionally apply a simple function to a column in a dataframe, then extend that function to work with multiple conditions.