Untitled
Anonymous
plain_text
02/14/2023 3:43 PM
200 B
27
Indexable
data['floor_type'] = data.apply (lambda x: 'первый' if x == 1 'последний' elif x == ['floors_total'] else 'другой' , axis = 1)
Editor is loading...
data['floor_type'] = data.apply (lambda x: 'первый' if x == 1 'последний' elif x == ['floors_total'] else 'другой' , axis = 1)