# Questions tagged [NumPy] (49)

2

## Due to what NumPy arrays are Python lists effectiveness?

Everywhere it is written that the NumPy arrays are faster and more efficient than lists. Why this is so, they have some kind of more optimal implementation or write, due to the fact that arrays have many useful and convenient features that are effectively written?
Pearlie asked April 18th 20 at 12:17
1

## How to speed up np.dot()?

Colleagues, kind time of day! Interested in the following: I get from DB df \$ 10 million rows by n columns; Then choose from this df one column; Make a copy of it consists of the inverse values; Received a copy of the make line; Then multiply by matrix method using np.dot()column on the generated string. -------------------...
Jaclyn.Langworth asked April 9th 20 at 10:31
1

## Do not work out a method of drawing a segment, what's wrong?

Hello, solve the problem of drawing the fractal,namely the Gosper curve, has the following methods: class turtle: def __init__(self): self._direction = np.array([1, 0]) # 2D direction vector self._position = np.array([0, 0]) # the 2D position vector def forward(self): pos = self._position dirn = self._direction self....
Adrianna_Casper asked April 9th 20 at 10:24
1

## How to get the indices of maximal elements in the array of NumPy arrays?

There is an array of the following form: (items in red are the largest elements whose indexes have to) That is, for such a array the code should return something like this: (0, 2, 2), (1, 0, 1), (2, 1, 0), (3, 0, 0), (4, 0, 0) Of course you can do a cycle with np.argmax, but maybe someone will be able to find a more effe...
Itzel_Bergnaum69 asked April 9th 20 at 10:07
1

## How to download the results of calculations from Python to Oracle?

Good day, Faced with such a situation: a bunch of articles on how to using python to connect to Oracle (cx_Oracle) to get data from a DB and then how to add back to the database data — the answer is not found. All the calculations I gather in the format of pd.DataFrame Please help if anyone solved a similar problem or hav...
Nasir.Donnelly asked April 8th 20 at 18:01
1

## Why not work a structured NumPy array?

That's why this piece of code tpl=('07f29c2c-9bd2-4999-b69c-a17d15a90700', datetime.datetime(2019, 8, 18, 0, 0), datetime.datetime(2019, 8, 18, 13, 3, 56), datetime.timedelta(seconds=31), datetime.datetime(2019, 8, 18, 13, 4, 27), 57) dt = np.dtype([('v2m_guid', str, 36), ('start_date', 'datetime64[ns]'), ('start_time', '...
kenna.Paucek asked April 8th 20 at 10:16
1

## How to get the vector-column, consisting of the derivative of one column of the array in another column?

there is a two-dimensional array 0.0, 1 1.0, 2 2.0, 3 2.5, 4 How to get the vector-column, consisting of the derivative of the second column to the first? 0 1 1 2 Or 1 1 2
Kyle.Koe asked April 8th 20 at 10:14
1

## How to put a numpy array to a numpy array?

I have this problem: I need to go to class to pass one-dimensional array with numbers, and class should be created in a single numpy array many arrays, how many items and one-dimensional which we passed, and with the dimension of each element as quickly as possible. Example: class Net(): def __init__(self, input_list): se...
jacinto.Tillman asked April 7th 20 at 11:47
1