You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "<string>", line 17, in __PYTHON_EL_eval
File "test.py", line 9, in <module>
df = smry.pandas_frame(time_index=yearly_dates, column_keys=["GGPT:NNA"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../site-packages/resdata/summary/rd_sum.py", line 618, in pandas_frame
frame = pd.DataFrame(index=time_index, columns=list(keywords), data=data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../site-packages/pandas/core/frame.py", line 827, in _init_
mgr = ndarray_to_mgr(
^^^^^^^^^^^^^^^
File ".../site-packages/pandas/core/internals/construction.py", line 332, in ndarray_to_mgr
index, columns = _get_axes(
^^^^^^^^^^
File ".../site-packages/pandas/core/internals/construction.py", line 751, in _get_axes
index = ensure_index(index)
^^^^^^^^^^^^^^^^^^^
File ".../site-packages/pandas/core/indexes/base.py", line 7649, in ensure_index
return Index(index_like, copy=copy)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../site-packages/pandas/core/indexes/base.py", line 532, in _new_
raise cls._raise_scalar_data_error(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../site-packages/pandas/core/indexes/base.py", line 5289, in _raise_scalar_data_error
raise TypeError(
TypeError: Index(...) must be called with a collection of some kind, TimeVector(size = 21) at 0x5634c5df0b10 was passed
The text was updated successfully, but these errors were encountered:
Put the following code in a
test.py
:With pandas 2.0 you get the following exception:
The text was updated successfully, but these errors were encountered: