Advertisement
korenizla

Alina

Feb 20th, 2022
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.76 KB | None | 0 0
  1. #print(sorted(loan['days_employed']))
  2. #не все значения отрицательные, значит простое умножение на -1 не поможет
  3. # применим функцию abs
  4. for day in loan['days_employed'].to_list():
  5.     if day<0:
  6.         day = day *(-1)
  7. print(loan.head(15))
  8. ---------------------------------------------------------------------------
  9. TypeError                                 Traceback (most recent call last)
  10. <ipython-input-47-39cfcd072f18> in <module>
  11.       3 # применим функцию abs
  12.       4 for day in loan['days_employed'].to_list():
  13. ----> 5     if day<0:
  14.       6         day = day *(-1)
  15.       7 print(loan.head(15))
  16.  
  17. TypeError: '<' not supported between instances of 'method' and 'int'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement