numpy tag

NumPy (pronounced /ˈnʌmpaɪ/ (NUM-py) or sometimes /ˈnʌmpi/ (NUM-pee)) is a library for the Python programming language, adding support for large, multi-dimensional arrays and matrices, along with a large collection of high-level mathematical functions to operate on these arrays. The ancestor of NumPy, Numeric, was originally created by Jim Hugunin with contributions from several other developers. In 2005, Travis Oliphant created NumPy by incorporating features of the competing Numarray into Numeric, with extensive modifications. NumPy is open-source software and has many contributors. NumPy is a NumFOCUS fiscally sponsored project.

Reference: WIKIPEDIA

137 questions


1 answers
60 views
0
How to create a (5,5,4) array from an array of shapes (5,5) in a python numpy array

There is an array X in python (5,5) similar to the following (the number is appropriate): array([59,65,57,57,62], [96, 81, 83, 83, 96], [53, 29, 30, 30, 53], [26, 0, 0, 0, 27], [20, 1, 5, 0, 19] ,...

2 years ago

1 answers
64 views
0
I want to fix 'int' object is not callable.

I put np.ndarray type data in a for statement and created a neural net, but it doesn't work. Please let me know. Below is the error statement and the corresponding part.Error Statements 2020-11-11 14:...

2 years ago

1 answers
42 views
0
Array array columns cannot be unified

The following data columns cannot be unified.Why?The following df3 dataarray([-1, 0, 1, 2, 1, 3, 4, 5, 6, 3, 3, 7, 8, 9]),list([-1, 10, 11, 10, 12, 13, 14, 15, 13, 16, 17, 13, 13, 13, 13, 13, 13, 13, ...

2 years ago

1 answers
98 views
0
When the np.concatenate function axis = 1, the output type question.

When there is an array of two rows and three columns called gird = np.array ([[1, 2, 3, [4, 5, 6])If you do np.concatenate ([gird, grid], axis=1), Why is the result array([[1, 2, 3, 1, 2, 3],[4, 5, 6,...

2 years ago

2 answers
73 views
0
Questions about Python Pandas dataframe

colum 1, colum2a,b,c 30b,c,f 40a,g,z 50...In this data frame, I would like to construct column4 by adding the value of column2 corresponding to a.column3, column4a 80b 70c 70f 40g 50z 50I wou...


1 answers
56 views
0
The difference in roles between shuffle and permutation in Python's No.Fi

The role of shuffle and permutation in Python nupi is to mix arrays randomlyBut I wonder what the difference is between the two.

2 years ago

1 answers
45 views
0
Python numpy, ask me a question

#_*_coding:utf-8 _*_import numpy as nplst = [ [1,2,3], [4,5,6], [7,8,9] ]arr = np.array(lst)a = arr[0:2, 0:2]print(a)I'm studying for my Python exam The result is [[12] [45]] a = arr[0:2, 0:2] I don't...

2 years ago

1 answers
51 views
0
Python, number, unique

I wonder how out[indices] reconstructs the original value.

2 years ago

1 answers
80 views
0
Python multilayer list data processing question.

I want to make a list of sizes (900, 156, 2) by repeating the process of averaging 2496 data with axis=1 in a three-dimensional list of sizes (900, 2496,2) in 16 window sizes and returning it as a sin...


1 answers
45 views
0
Python numpy, help me

In vector operation,Vect1 Vect2 and those twoAddition, Deletion, Constant Multiplication, Inner ProductI'd like to print these four outIt's easy to add two more vects for the addition, but I don't kno...

2 years ago
« - 11 - »

© 2024 OneMinuteCode. All rights reserved.