About 50 results
Open links in new tab
  1. numpy.ndarray' object is not callable - Python Forum

    Oct 16, 2020 · Hi, I'm new to python and I'm trying to call a function and use it to calculate the median of a dataset but when I run it I get the following error: if n % 2 == 0: a_median = a (n / …

  2. Help of multiple threads using cpython - Python Forum

    Jun 7, 2018 · I recently tried to use a lot of threads (i.e. about 100) to run the same python function. That function will call an external library written in C. However, cpython ...

  3. NameError: name 'self' is not defined - Python Forum

    Jan 9, 2021 · self.img = cv2.imdecode(np.fromfile(frame, dtype=np.uint8), cv2.IMREAD_UNCHANGED) AttributeError: 'numpy.ndarray' object has no attribute 'flush' I …

  4. Spyder: ndarray object of numpy module error - Python Forum

    Jul 31, 2019 · Hi all, I am going through the ML A-Z course on udemy to help me solve an assignment and I am at the stage of preprocessing my data at the moment. My code is as …

  5. Change a numpy array to a dataframe - Python Forum

    Jan 26, 2023 · As anyone can see from the attached screenshot after I scaled a dataframe, it is now a numpyndarray. That would make it hard to save. SO how do I conveit ot a datframe? …

  6. np.arrange error - no attribute - Python Forum

    Aug 16, 2017 · Python novice. I am using the Canopy Python editor. I cannot get the arrange command to work. ---------------------------------------- import numpy as np pp=np ...