Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "/opt/conda/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 3118, in get_value
  3. tz=getattr(series.dtype, 'tz', None))
  4. File "pandas/_libs/index.pyx", line 106, in pandas._libs.index.IndexEngine.get_value
  5. File "pandas/_libs/index.pyx", line 114, in pandas._libs.index.IndexEngine.get_value
  6. File "pandas/_libs/index.pyx", line 162, in pandas._libs.index.IndexEngine.get_loc
  7. File "pandas/_libs/hashtable_class_helper.pxi", line 958, in pandas._libs.hashtable.Int64HashTable.get_item
  8. File "pandas/_libs/hashtable_class_helper.pxi", line 964, in pandas._libs.hashtable.Int64HashTable.get_item
  9. KeyError: 0
  10.  
  11. During handling of the above exception, another exception occurred:
  12.  
  13. Traceback (most recent call last):
  14. File "bikeshare.py", line 185, in <module>
  15. main()
  16. File "bikeshare.py", line 174, in main
  17. time_stats(df)
  18. File "bikeshare.py", line 87, in time_stats
  19. common_month = df['month'].mode()[0]
  20. File "/opt/conda/lib/python3.6/site-packages/pandas/core/series.py", line 767, in __getitem__
  21. result = self.index.get_value(self, key)
  22. File "/opt/conda/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 3124, in get_value
  23. return libindex.get_value_box(s, key)
  24. File "pandas/_libs/index.pyx", line 55, in pandas._libs.index.get_value_box
  25. File "pandas/_libs/index.pyx", line 70, in pandas._libs.index.get_value_box
  26. IndexError: index out of bounds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement