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