Error in Online Enviroment
-
Hi, I currently get the following error when trying to use pandas in the online enviroment:
File /usr/local/lib/python3.10/site-packages/pandas/core/ops/array_ops.py:139, in _na_arithmetic_op(left, right, op, is_cmp)
133 def _masked_arith_op(x: np.ndarray, y, op):
134 """
135 If the given arithmetic operation fails, attempt it again on
136 only the non-null elements of the input array(s).
137
138 Parameters
--> 139 ----------
140 x : np.ndarray
141 y : np.ndarray, Series, Index
142 op : binary operator
143 """
144 # For Seriesx
is 1D so ravel() is a no-op; calling it anyway makes
145 # the logic valid for both Series and DataFrame ops.
146 xrav = x.ravel()File /usr/local/lib/python3.10/site-packages/pandas/core/computation/expressions.py:18
14 import numpy as np
16 from pandas._config import get_option
---> 18 from pandas.util._exceptions import find_stack_level
20 from pandas.core import roperator
21 from pandas.core.computation.check import NUMEXPR_INSTALLEDImportError: cannot import name 'find_stack_level' from 'pandas.util._exceptions' (/usr/local/lib/python3.10/site-packages/pandas/util/_exceptions.py). Does anyone know the solution?, thx
-
-
Dear magenta.kabuto,
It appears to be a pandas version mismatch. You can try using different pandas version but it's not documented nor supported and our library could behave in an unexpected manner.