Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Numpy array
Post: RE: Numpy array

Well I did some timing of your code. It did give correct results!! The only thing was, I had to stop it after the first 5 results were printed. It took extremely long just to get 5 results (over a ...
BrianPA Data Science 13 4,981 Jan-22-2021, 10:17 PM
    Thread: Numpy array
Post: RE: Numpy array

Thanks Serafim!! And yes the error has to do with the short example of the file. I'm gonna try what you posted in the timings. I usually run for 100 iterations, and do that 10 times. I'll post b...
BrianPA Data Science 13 4,981 Jan-22-2021, 09:47 PM
    Thread: Numpy array
Post: RE: Numpy array

THANKS Perfringo!!!! You have given me some great options to investigate. The np.intersect looks intriguing. I will definitely have to look into that option. I did figure out how to accomplish the ...
BrianPA Data Science 13 4,981 Jan-22-2021, 01:24 PM
    Thread: Numpy array
Post: RE: Numpy array

I will try to explain at length what I'm trying to do and also with examples: Here is a sample of the D5 2d numpy array. Each row has 5 integers, and the integers are from 1 to 43 inclusive: 3 8 21 3...
BrianPA Data Science 13 4,981 Jan-20-2021, 07:27 PM
    Thread: Numpy array
Post: RE: Numpy array

Sorry, maybe I didn't explain that properly. It is a 2d array Only 5 integers per line The integers can only range from 1 to 43 (In a sorted manner) There are a few million lines(rows) in the 2d array...
BrianPA Data Science 13 4,981 Jan-20-2021, 11:24 AM
    Thread: type error array
Post: RE: type error array

(Jan-17-2021, 03:00 AM)deanhystad Wrote: Quote:numpy.array(object, dtype=None, *, copy=True, order='K', subok=False, ndmin=0) Parameters object : array_like An array, any object exposing the array ...
BrianPA Data Science 2 2,420 Jan-17-2021, 01:48 PM
    Thread: type error array
Post: type error array

I have a numpy 2darray called d5. I'm trying to get values from row#1 [0]. and I'm comparing them with values from row#2 [1]. If values from row#2 are not equal, then advance to row#3 and iterate u...
BrianPA Data Science 2 2,420 Jan-17-2021, 02:01 AM
    Thread: Numpy array
Post: Numpy array

Please excuse my ignorance, just trying to learn. This is my first attempt at writing a program myself. I'm self taught through courses on the web. I'm very green at programming, so I apologize in ...
BrianPA Data Science 13 4,981 Jan-11-2021, 10:48 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020