Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "<ipython-input-1-231dfe0c0437>", line 1, in <module>
- runfile('C:/Python/cig_dbbuilding/results_upload_to_mongo_walk.py', wdir='C:/Python/cig_dbbuilding')
- File "C:\Users\micha\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
- execfile(filename, namespace)
- File "C:\Users\micha\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
- exec(compile(f.read(), filename, 'exec'), namespace)
- File "C:/Python/cig_dbbuilding/results_upload_to_mongo_walk.py", line 394, in <module>
- main()
- File "C:/Python/cig_dbbuilding/results_upload_to_mongo_walk.py", line 353, in main
- dot_four(client, f, year)
- File "C:/Python/cig_dbbuilding/results_upload_to_mongo_walk.py", line 215, in dot_four
- lambda race: (
- File "C:\Users\micha\Anaconda3\lib\site-packages\pandas\core\groupby\groupby.py", line 737, in apply
- return self._python_apply_general(f)
- File "C:\Users\micha\Anaconda3\lib\site-packages\pandas\core\groupby\groupby.py", line 742, in _python_apply_general
- keys, values, mutated = self.grouper.apply(f, self._selected_obj, self.axis)
- File "C:\Users\micha\Anaconda3\lib\site-packages\pandas\core\groupby\ops.py", line 237, in apply
- res = f(group)
- File "C:/Python/cig_dbbuilding/results_upload_to_mongo_walk.py", line 220, in <lambda>
- .to_dict(orient="index")
- File "C:\Users\micha\Anaconda3\lib\site-packages\pandas\core\frame.py", line 1376, in to_dict
- raise ValueError("DataFrame index must be unique for orient='index'.")
- ValueError: DataFrame index must be unique for orient='index'.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement