Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- games['name'].drop_duplicates().reset_index(drop=True)
- games['name'].duplicated().sum()
- ---------------------------------------------------------------------------
- IndexError Traceback (most recent call last)
- <ipython-input-39-0f20960c0078> in <module>
- ----> 1 games['name'].drop_duplicates().reset_index(drop=True)
- 2 games['name'].duplicated().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