Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. df['floor_category'] = 'Другой'
  2. df['floor_category'] = df['floor'].where(cond = df.floor != df.floors_total, other =  'Последний')
  3. df['floor_category'] = df['floor'].where(cond = df.floor != 1, other= 'Первый')
  4. df['floor_category'].unique()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement