df['floor_type'] = df['floor'].apply(lambda x: 'первый' if x==1 else 'последний' if x=='floor' else 'другой')