running error in retail_rate_calculations.py #84
Unanswered
wanyingw193
asked this question in
Q&A: Execution
Replies: 1 comment 3 replies
-
Without knowing what cases_text.csv is, I can really provide much input here. I will note two things that might be helpful:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi ReEDS team!
So strange that an error reported in retail_rate_calculations.py when input csv is cases_text.csv. Below is the error info copied from Gamslog.txt. Could I get some suggestions for debugging? Thanks!
*** Status: Normal completion
--- Job e_report_dump.gms Stop 01/04/22 09:18:08 elapsed 0:00:13.329
Traceback (most recent call last):
File "C:\software\ReEDS_OpenAccess-2021\retail_rate_module\retail_rate_calculations.py", line 2062, in
write=True, verbose=args.verbose,
File "C:\software\ReEDS_OpenAccess-2021\retail_rate_module\retail_rate_calculations.py", line 382, in main
received_expenditures, on = ['price_type', 't', 'state'], how = 'outer').fillna(0)
File "C:\Users\14399\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\core\frame.py", line 7963, in merge
validate=validate,
File "C:\Users\14399\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\core\reshape\merge.py", line 87, in merge
validate=validate,
File "C:\Users\14399\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\core\reshape\merge.py", line 652, in init
) = self._get_merge_keys()
File "C:\Users\14399\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\core\reshape\merge.py", line 1005, in _get_merge_keys
right_keys.append(right._get_label_or_level_values(rk))
File "C:\Users\14399\AppData\Local\Programs\Python\Python37\lib\site-packages\pandas\core\generic.py", line 1563, in _get_label_or_level_values
raise KeyError(key)
KeyError: 'price_type'
Beta Was this translation helpful? Give feedback.
All reactions