Questions tagged as 'numpy'

0
answers

Define sections in a color recognition program

I'm working on a project, which will be my CBT next year. I'm learning from the Python language, and for the time being I've had some progress. I was reading about computer vision, but I still have some doubts. I was able to formalize a program...
asked by 28.07.2018 / 01:54
1
answer

Problem with arrays in Python 3.6

I started a short course on deep learning with Python, but I ended up having a problem with arrays ...   I usually pick up the class code and change it quite a bit before creating an original, but this time when I circled the code studied, it ga...
asked by 29.05.2018 / 23:16
1
answer

Numpy Array Error With dtype = numpy.uint8

The code below works normally, however the elements are "objects". M = numpy.array([[1,2,3],[1,2],[1,2,3,4]],dtype=object) However, when I run the code below, I get the message "setting an array element with a sequence". The question is: ho...
asked by 10.05.2018 / 15:29
1
answer

Problem installing Numpy [closed]

Good morning guys, I was trying to install Numpy on this machine ... I ran the "conda install numpy" command and it worked fine ... but when I ran "pip install numpy", it returns that error.     
asked by 24.05.2018 / 15:48
1
answer

Import CSV to bank Pandas without converting string to tuple

I carry a CSV file with more than 3 million lines and about 770 Mb , I use the pandas and I need to convert a column that is in string format. Below the 'lbBins' column, which when read from CSV came in string format (what is the best default fo...
asked by 08.03.2018 / 19:24
1
answer

Problem with numpy array

I'm having a problem using NUMPY. It has a testeSolucao array, of that type <class 'numpy.matrixlib.defmatrix.matrix'> , and I need to get the lowest value of it, but I can not. First I thought it was a vector, but it's genera...
asked by 30.09.2017 / 18:44
2
answers

How to install numpy and other modules?

I need help with how to install numpy. I tried to install pygame using pip but it did not work and I was confused on how to install modules or packages. Using python 3.5.0 in Windows 10 pro     
asked by 16.11.2015 / 00:09
2
answers

Python: index 5324 is out of bounds for axis 0 with size 5040

Hello, everyone, I have a Python code that reads the 5040 numbers from a TXT file to perform a simulation, as shown in Figure 1 . Next, the code creates a B (s) function, which is used in the Figure 2 commands (I skipped a part of the code...
asked by 25.01.2016 / 21:04
1
answer

How to run a code outside of a directory in Python? [closed]

I tried to run the code thatissavedonthedesktop.However,PythonShell Could you help me? Thank you, Marcos Miotti     
asked by 04.01.2016 / 19:42
1
answer

Minimum value of each Python array column

import numpy as np X = np.random.rand(4,3) print("X: \n", X) XMin = np.zeros((1,3), dtype=np.float64) for j in range(3): print("X[{0}]: {1}".format(j,X[j])) minimo = np.amin(X[j]) print("minimo: ", minimo) np.append(XMin, minim...
asked by 26.11.2018 / 02:31