Advertisement
MichaelRomeroJr1

Untitled

Mar 20th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.67 KB | None | 0 0
  1. Traceback (most recent call last):
  2.  
  3.   File "<ipython-input-1-231dfe0c0437>", line 1, in <module>
  4.     runfile('C:/Python/cig_dbbuilding/results_upload_to_mongo_walk.py', wdir='C:/Python/cig_dbbuilding')
  5.  
  6.   File "C:\Users\micha\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
  7.     execfile(filename, namespace)
  8.  
  9.   File "C:\Users\micha\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
  10.     exec(compile(f.read(), filename, 'exec'), namespace)
  11.  
  12.   File "C:/Python/cig_dbbuilding/results_upload_to_mongo_walk.py", line 394, in <module>
  13.     main()
  14.  
  15.   File "C:/Python/cig_dbbuilding/results_upload_to_mongo_walk.py", line 353, in main
  16.     dot_four(client, f, year)
  17.  
  18.   File "C:/Python/cig_dbbuilding/results_upload_to_mongo_walk.py", line 215, in dot_four
  19.     lambda race: (
  20.  
  21.   File "C:\Users\micha\Anaconda3\lib\site-packages\pandas\core\groupby\groupby.py", line 737, in apply
  22.     return self._python_apply_general(f)
  23.  
  24.   File "C:\Users\micha\Anaconda3\lib\site-packages\pandas\core\groupby\groupby.py", line 742, in _python_apply_general
  25.     keys, values, mutated = self.grouper.apply(f, self._selected_obj, self.axis)
  26.  
  27.   File "C:\Users\micha\Anaconda3\lib\site-packages\pandas\core\groupby\ops.py", line 237, in apply
  28.     res = f(group)
  29.  
  30.   File "C:/Python/cig_dbbuilding/results_upload_to_mongo_walk.py", line 220, in <lambda>
  31.     .to_dict(orient="index")
  32.  
  33.   File "C:\Users\micha\Anaconda3\lib\site-packages\pandas\core\frame.py", line 1376, in to_dict
  34.     raise ValueError("DataFrame index must be unique for orient='index'.")
  35.  
  36. ValueError: DataFrame index must be unique for orient='index'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement