| traceback | Traceback (most recent call last):
File "/home/jonsmirl/thesis/.venv/lib/python3.12/site-packages/pandas/core/indexes/base.py", line 3641, in get_loc
return self._engine.get_loc(casted_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pandas/_libs/index.pyx", line 168, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 197, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 7668, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 7676, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'value'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/jonsmirl/thesis/thesis-tests/run_all.py", line 65, in run_test
results = mod.main()
^^^^^^^^^^
File "/home/jonsmirl/thesis/thesis-tests/tests/dynamics/test_rho_diversity.py", line 341, in main
recession = _get_recession_depths()
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jonsmirl/thesis/thesis-tests/tests/dynamics/test_rho_diversity.py", line 294, in _get_recession_depths
year_vals = dict(zip(grp['year'].astype(int), grp['value'].astype(float)))
~~~^^^^^^^^^
File "/home/jonsmirl/thesis/.venv/lib/python3.12/site-packages/pandas/core/frame.py", line 4378, in __getitem__
indexer = self.columns.get_loc(key)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jonsmirl/thesis/.venv/lib/python3.12/site-packages/pandas/core/indexes/base.py", line 3648, in get_loc
raise KeyError(key) from err
KeyError: 'value'
|