Advertisement
Dodma

Untitled

May 6th, 2020
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. games['user_score'] = pd.to_numeric(games['user_score'], errors='coerce')
  2. games['user_score'] = games['user_score'].fillna(20)
  3. games.loc[(games['user_score'] == 'tbd'), 'user_score'] = 11
  4. games.info()
  5.  
  6.  
  7. /opt/conda/lib/python3.7/site-packages/pandas/core/ops/__init__.py:1115: FutureWarning:
  8.  
  9. elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement