Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: NumPy array; selecting the a single column
Post: NumPy array; selecting the a single column

I have a numpy array with data. How do I select the first column my_array =numpy.array([[1,2,3], [1,2,3]])I can get the first row (1,2,3) by: first_row = my_array[0]I simply want a code to give me the...
econmajor Data Science 0 3,079 Oct-24-2017, 04:25 PM
    Thread: CSV reader : save the content into a list
Post: RE: CSV reader : save the content into a list

(Oct-18-2017, 10:42 PM)Larz60+ Wrote: import csv with open('file.csv') as csvfile:     readCSV = csv.reader(csvfile, delimiter=';')     for row in readCSV:         print(row)Are you sure the delimi...
econmajor General Coding Help 4 3,816 Oct-23-2017, 04:55 PM
    Thread: CSV reader : save the content into a list
Post: CSV reader : save the content into a list

I want to read a csv file and save the content in a list call 'data'. The following reads the data but do not save a list with the content. import csv with open('file.csv') as csvfile: rea...
econmajor General Coding Help 4 3,816 Oct-18-2017, 09:08 PM

User Panel Messages

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