Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Convert indexing For Loop from MATLAB (uses numpy and pandas)
Post: RE: Convert indexing For Loop from MATLAB (uses nu...

That is much cleaner than the way I just figured out! I need the minimum value too (and then the mean of the difference between max and min). I tried tweaking your code by switching '>' to '<', ...
bentaz Data Science 3 4,206 Mar-20-2018, 08:29 PM
    Thread: Convert indexing For Loop from MATLAB (uses numpy and pandas)
Post: Max values from index

Hi, If you had an array like: 5, 20, 5, 30, 7, 25, 7, 15, 7, 30, 9, 50, 9, 20, 9, 35, 6, 25, 6, 35, 10, 33, 10, 23, 10, 13, 8, 17, 8, 15, 8, 16, How would you you find the biggest value from colum...
bentaz Data Science 3 4,206 Mar-20-2018, 02:33 PM
    Thread: Upload csv file as numbers (floating?) and extract element, row, and column
Post: RE: Upload csv file as numbers (floating?) and ext...

I think I did a better job of posting on my next question: https://python-forum.io/Thread-Convert-i...and-pandas if you want to give it a shot.
bentaz Data Science 7 4,517 Mar-19-2018, 05:34 PM
    Thread: Convert indexing For Loop from MATLAB (uses numpy and pandas)
Post: Convert indexing For Loop from MATLAB (uses numpy ...

Hello, I am trying to convert a program to Python (using numpy and pandas as well) from MATLAB. The input is a (n by 2) array called scaletestmatrix (in this case a 6x2 array). Column one is the x va...
bentaz Data Science 3 4,206 Mar-19-2018, 04:49 PM
    Thread: Upload csv file as numbers (floating?) and extract element, row, and column
Post: RE: Upload csv file as numbers (floating?) and ext...

My apologies for using the word "upload" instead of "open and read" in the first post. Egg on my face for sure. After that I WAS asking how to upload files (a .csv file) to this forum of kind souls....
bentaz Data Science 7 4,517 Mar-16-2018, 11:35 PM
    Thread: Upload csv file as numbers (floating?) and extract element, row, and column
Post: RE: Upload csv file as numbers (floating?) and ext...

That is an excellent point! That's why I asked about uploading files. That matrix (or 2D array if you prefer) is saved in a .csv spreadsheet and then uploaded into Python. I.e. copy and paste thos...
bentaz Data Science 7 4,517 Mar-16-2018, 10:24 PM
    Thread: Upload csv file as numbers (floating?) and extract element, row, and column
Post: RE: Upload csv file as numbers (floating?) and ext...

Hi Larz, The matrix.csv is just: 1 5 9 2 6 10 3 7 11 4 8 12 Is there any way to upload files here? Thanks
bentaz Data Science 7 4,517 Mar-16-2018, 08:00 PM
    Thread: Upload csv file as numbers (floating?) and extract element, row, and column
Post: Upload csv file as numbers (floating?) and extract...

Hello, I've been trying for a couple days to upload a csv file as a 2D matrix of numerical values (e.g. 1+2=3) so that I can extract individual numbers, rows, and, columns. I am using numpy. The inpu...
bentaz Data Science 7 4,517 Mar-16-2018, 04:46 PM

User Panel Messages

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