taxmanyana / cft

Climate Forecasting Toolbox
1 stars 0 forks source link

Mismatch in dimensions when preparing DataFrame for correlation graph plot #5

Closed taxmanyana closed 2 years ago

taxmanyana commented 2 years ago

Traceback (most recent call last): File "/opt/homebrew/Cellar/python@3.9/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/Users/thembani/Documents/Projects/cft-3.0.0/functions.py", line 1829, in forecast_station graphdf[prefixParam["Param"]] = sst_arr File "/opt/homebrew/lib/python3.9/site-packages/pandas/core/frame.py", line 3612, in setitem self._set_item(key, value) File "/opt/homebrew/lib/python3.9/site-packages/pandas/core/frame.py", line 3797, in _set_item self._set_item_mgr(key, value) File "/opt/homebrew/lib/python3.9/site-packages/pandas/core/frame.py", line 3754, in _set_item_mgr self._mgr.insert(len(self._info_axis), key, value) File "/opt/homebrew/lib/python3.9/site-packages/pandas/core/internals/managers.py", line 1162, in insert block = new_block(values=value, ndim=self.ndim, placement=slice(loc, loc + 1)) File "/opt/homebrew/lib/python3.9/site-packages/pandas/core/internals/blocks.py", line 1937, in new_block check_ndim(values, placement, ndim) File "/opt/homebrew/lib/python3.9/site-packages/pandas/core/internals/blocks.py", line 1966, in check_ndim raise ValueError( ValueError: Wrong number of dimensions. values.ndim > ndim [3 > 2]