🌐
GitHub
github.com › aertslab › pySCENIC › issues › 350
AttributeError: 'numpy.ndarray' object has no attribute 'quantile' when doing nGenesDetectedPerCell.quantile() · Issue #350 · aertslab/pySCENIC
December 22, 2021 - AttributeError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_20596/2572477736.py in <module> 1 # STEP 4: Cellular enrichment (aka AUCell) from CLI 2 nGenesDetectedPerCell = np.sum(adata.X>0, axis=1) ----> 3 percentiles = nGenesDetectedPerCell.quantile([.01, .05, .10, .50, 1]) 4 print(percentiles) AttributeError: 'numpy.ndarray' object has no attribute 'quantile'
Author   hyjforesight
🌐
GitHub
github.com › llSourcell › Kaggle_Earthquake_challenge › issues › 3
module 'numpy' has no attribute 'quantile' · Issue #3 · llSourcell/Kaggle_Earthquake_challenge
Having the attribute error with the message: " module 'numpy' has no attribute 'quantile' " even after the updated version of Numpy.
Discussions

python - AttributeError: 'numpy.ndarray' object has no attribute 'index' - Stack Overflow
I'm working on a Quantile Regression Neural Network (QRNN) that can act as a forecaster for wind power as well as a detector for false data injection attacks. I pretty much finished it but I am t... More on stackoverflow.com
🌐 stackoverflow.com
Attribute error during testing
Tell us what’s happening: The test module fails giving the error 'numpy.ndarray' object has no attribute 'get_xlabel'. A very similar error comes up in the second test. Additionally for some reasons the values in my correlation matrix are wrong. This is the console output: python main.py ... More on forum.freecodecamp.org
🌐 forum.freecodecamp.org
0
0
October 5, 2021
Medical Data Visualizer (AttributeError: numpy.ndarray)
I am having this error and can’t find the solution. Does anyone knows how to fix it? Thanks in advance. EE.['0.0', '0.0', '-0.0', '0.0', '-0.1', '0.5', '0.0', '0.1', '0.1', '0.3', '0.0', '0.0', '0.0', '0.0', '0.0', '0.0', '0.2', '0.1', '0.0', '0.2', '0.1', '0.0', '0.1', '-0.0', '-0.1', '0.1', ... More on forum.freecodecamp.org
🌐 forum.freecodecamp.org
0
1
October 10, 2020
Numpy.int64 object has no attribute 'quantile'

It helps to post a full stack trace, but based on what you’ve said it sounds like you’re trying to call the quantile function on a single integer, rather than the whole column

More on reddit.com
🌐 r/pythontips
1
2
October 5, 2021
🌐
Codecademy Forums
discuss.codecademy.com › community › bug reporting
[REPORTED] NumPy Issue - Bug Reporting - Codecademy Forums
June 16, 2020 - In the next exercise i tried this code rainfall = np.array([5.21, 3.76, 3.27, 2.35, 1.89, 1.55, 0.65, 1.06, 1.72, 3.35, 4.82, 5.11]) rain_mean = np.mean(rainfall) rain_median = np.median(rainfall) first_quarter = np.quantile(rainfall,0.25) first_quarterr = np.percentile(rainfall,25) print(first_quarter) print(first_quarterr) But here don’t know why it gave this error Traceback (most recent call last): File "script.py", line 9, in first_quarter = np.quantile(rainfall,0.25) At...
🌐
NumPy
numpy.org › devdocs › reference › generated › numpy.quantile.html
numpy.quantile — NumPy v2.5.dev0 Manual
If q is a single probability and axis=None, then the result is a scalar. If multiple probability levels are given, first axis of the result corresponds to the quantiles. The other axes are the axes that remain after the reduction of a. If the input contains integers or floats smaller than float64, ...
🌐
Stack Overflow
stackoverflow.com › questions › 60443045 › attributeerror-numpy-ndarray-object-has-no-attribute-index
python - AttributeError: 'numpy.ndarray' object has no attribute 'index' - Stack Overflow
import numpy as np import tensorflow as tf from keras import backend as K K.set_floatx('float64') # pinball loss function with penalty def pinball_loss(y, q, tau, alpha = 0.001, kappa = 0, margin = 0): """ :param y: target :param q: predicted quantile :param tau: coverage level :param alpha: smoothing parameter :param kappa: penalty term :param margin: margin for quantile cross-over :return: quantile loss """ # calculate smooth pinball loss function error = (y - q) quantile_loss = K.mean(tau * error + alpha * K.softplus(-error / alpha) ) # calculate smooth cross-over penalty diff = q[:, 1:] - q[:, :-1] penalty = kappa * K.mean(tf.square(K.maximum(tf.Variable(tf.zeros([1], dtype=tf.float64)), margin - diff))) return quantile_loss + penalty
🌐
freeCodeCamp
forum.freecodecamp.org › python
Attribute error during testing - Python - The freeCodeCamp Forum
October 5, 2021 - Tell us what’s happening: The test module fails giving the error 'numpy.ndarray' object has no attribute 'get_xlabel'. A very similar error comes up in the second test. Additionally for some reasons the values in my correlation matrix are wrong. This is the console output: python main.py ...
🌐
Edureka Community
edureka.co › home › community › categories › python › attributeerror numpy ndarray object has no...
AttributeError numpy ndarray object has no attribute append | Edureka Community
this is my part of a code , whey it shows :AttributeError: 'numpy.ndarray' object has no attribute ' ... np.array(prets) pvols = np.array(pvols)
🌐
freeCodeCamp
forum.freecodecamp.org › python
Medical Data Visualizer (AttributeError: numpy.ndarray) - Python - The freeCodeCamp Forum
October 10, 2020 - I am having this error and can’t find the solution. Does anyone knows how to fix it? Thanks in advance. EE.['0.0', '0.0', '-0.0', '0.0', '-0.1', '0.5', '0.0', '0.1', '0.1', '0.3', '0.0', '0.0', '0.0', '0.0', '0.0', '0.…
Find elsewhere
🌐
GitHub
github.com › waylandy › phosformer › issues › 1
'numpy.ndarray' object has no attribute 'numpy'. · Issue #1 · waylandy/phosformer
November 16, 2023 - Traceback (most recent call last): File "/Users/joshuasacher/phosformer/wip1_S234.py", line 17, in <module> predictions = Phosformer.predict_many( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/joshuasacher/phosformer/Phosformer/modules.py", line 204, in predict_many return np.array([i['pred'] for i in batch_job(kinases, peptides, **kwargs)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/joshuasacher/phosformer/Phosformer/modules.py", line 204, in <listcomp> return np.array([i['pred'] for i in batch_job(kinases, peptides, **kwargs)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/joshuasacher/phosformer/Phosformer/modules.py", line 96, in batch_job pred = softmax(result['logits'].cpu(), axis=1)[:,1].numpy() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'numpy.ndarray' object has no attribute 'numpy'.
Author   jrsacher
🌐
MNE Forum
mne.discourse.group › support & discussions
AttributeError: 'numpy.ndarray' object has no attribute 'get' - Support & Discussions - MNE Forum
May 17, 2021 - MNE-Python version: 0.23.0 operating system: Ubuntu 18.04.5 LTS -IDE: Pycharm-community import matplotlib import matplotlib.pyplot as plt import mne import numpy matplotlib.use('Qt5Agg') mne.set_log_level('warning') # Load raw data data_path = '/MNE/BrainVision/3.vhdr' raw = mne.io.read_raw_brainvision(data_path, preload=True, verbose=False) raw.info['line_freq'] = 50.
🌐
Neurostars
neurostars.org › community chat
AttributeError: 'numpy.ndarray' object has no attribute 'func' - Community Chat - Neurostars
September 1, 2022 - Hello, I am working on a subject on my local pc I did preprocessing through fmriprep on docker. I used the when I wanted to run import nibabel as nib from nibabel.testing import data_path import numpy as np from nilearn import datasets atlas = datasets.fetch_atlas_msdl() Loading atlas image stored in ‘maps’ atlas_filename = atlas[‘maps’] Loading atlas data stored in ‘labels’ labels = atlas[‘labels’] Load the functional datasets a = nib.load(’/home/roya/outputneww2/sub-1001/ses-01/...
🌐
Python Forum
python-forum.io › thread-37639.html
AttributeError: 'numpy.ndarray' object has no attribute 'load'
I have the following error: Error: currrent_pixel = my_image.load() AttributeError: 'numpy.ndarray' object has no attribute 'load'in the following code: import cv2 import numpy as np my_image = cv2.imread...
🌐
PyMC Discourse
discourse.pymc.io › questions › v5
AttributeError: 'numpy.ndarray' object has no attribute 'at' when sampling LKJ Cholesky Covariance Priors for Multivariate Normal Models example with numpyro or blackjax - v5 - PyMC Discourse
February 26, 2025 - I wanted to try out sampling with numpyro on an AMD GPU using a model based on this example: https://www.pymc.io/projects/examples/en/latest/howto/LKJ.html It works with PyMC and nutpie samplers, but not with jax samplers. The code I run looks like the following: import pymc as pm import numpy def main(): RANDOM_SEED = 8927 rng = numpy.random.default_rng(RANDOM_SEED) N = 10000 mu_actual = numpy.array([1.0, -2.0]) sigmas_actual = numpy.array([0.7, 1.5]) Rho_actual ...
🌐
Reddit
reddit.com › r/learnpython › error creating numpy v-stack, 'attributeerror: 'numpy.ndarray' object has no attribute 'np'
r/learnpython on Reddit: Error creating numpy v-stack, 'AttributeError: 'numpy.ndarray' object has no attribute 'np'
May 4, 2021 -

Hi,

I'm trying to create a numpy v-stack and creating 3 np.array's for it, by filling them with a loop:

I get the error: 'AttributeError: 'numpy.ndarray' object has no attribute 'np' . I think I'm using the wrong notation to append to the empty arrays:

neighbor_id = [id_ for id_ in range(1, n_obs) if id_ != user_id]

neighbor_id_arr = np.array(neighbor_id)

similarity = np.array([])

num_interactions = np.array([])

# get similarity and num_interactions

for id_ in neighbor_id:

similarity.np.append(np.dot(user_item.loc[user_id],user_item.loc[id_])) #The issue is here, I think

num_interactions.np.append(user_interactions.loc[id_])

c = numpy.vstack((neighbor_id_arr, similarity,num_interactions))

Thanks!
James

🌐
GeeksforGeeks
geeksforgeeks.org › numpy-quantile-in-python
numpy.quantile() in Python - GeeksforGeeks
April 22, 2025 - Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must be a hashable type. The object supports both integer- and label-based indexing and provides a host of methods for performing operations involving the index. Pandas Series.quantile() function return va ... numpy.percentile() function used to compute the nth percentile of the given data (array elements) along the specified axis. Python numpy.percentile() Syntax FunctionSyntax: numpy.percentile(arr, n, axis=None, out=None,overwrite_input=False, method='linear', keepdims=False, *, interpolation=None) Pa