Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- games.drop(index = games[games['name']=='NaN'].index, inplace = True)
- games['name'].isnull().sum()
- IndexError Traceback (most recent call last)
- <ipython-input-72-309779fe867b> in <module>
- ----> 1 games.drop(index = games[games['name']=='NaN'].index, inplace = True)
- 2 games['name'].isnull().sum()
- /opt/conda/lib/python3.7/site-packages/pandas/core/indexes/base.py in __getitem__(self, key)
- 4278 if is_scalar(key):
- 4279 key = com.cast_scalar_indexer(key)
- -> 4280 return getitem(key)
- 4281
- 4282 if isinstance(key, slice):
- IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement