Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- games.loc[games['name']=='None','name'] = 'Unknown'
- games['name'].drop_duplicates().reset_index(drop=True)
- games.info()
- AttributeError Traceback (most recent call last)
- <ipython-input-51-b656fd779a62> in <module>
- ----> 1 games.loc[games['name']=='None','name'] = 'Unknown'
- 2 games['name'].drop_duplicates().reset_index(drop=True)
- 3 games.info()
- AttributeError: 'Index' object has no attribute 'loc'
Add Comment
Please, Sign In to add comment