SHARE
TWEET

Untitled

a guest Oct 21st, 2019 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Добавлем этаж квартиры с вариантами: первый, последный и другой.
  2. Создание колонки «first_floor» — первый этаж
  3. Делаю булевы значения через метод where
  4.  
  5. apasale['first_floor'] = apasale['floor'].where(apasale['floor'] != 1, 1)
  6. apasale['first_floor'] = apasale['floor'].where(apasale['floor'] == 1, 0)
  7.  
  8. Если этаж = 1, обозначать как 1, наоборот, как 0
  9.  
  10. Как сделать значения «последний этаж» и «другой»?
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top