def add_trip_duration_in_minutes(df):
    """Adding new variable for trip duration in minutes."""
    
    print("adding trip duration in minutes")
    df['trip_duration_minutes'] = (df.dropoff_datetime - df.pickup_datetime).dt.total_seconds() / 60
    
    return df