Navigation

    Quantiacs Community

    • Register
    • Login
    • Search
    • Categories
    • News
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Error in Online Enviroment

    Support
    2
    3
    186
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      magenta.kabuto last edited by

      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 Series x 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_INSTALLED

      ImportError: 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

      M 1 Reply Last reply Reply Quote 0
      • M
        magenta.kabuto @magenta.kabuto last edited by

        @support

        1 Reply Last reply Reply Quote 0
        • support
          support last edited by

          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.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post
          Powered by NodeBB | Contributors
          • Documentation
          • About
          • Career
          • My account
          • Privacy policy
          • Terms and Conditions
          • Cookies policy
          Home
          Copyright © 2014 - 2021 Quantiacs LLC.
          Powered by NodeBB | Contributors