Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
csv to array
#3
I would suggest you to use Pandas for such data manipulations.
e.g.
import pandas as pd
data = pd.read_csv('your_file.csv') # check sep (separator) parameter 
data.values # numpy array
data['col1'] #access data by column names
It is very flexible and allows to perform basic operations with the data, e.g. filtering,
grouping, i/o, descriptive statistics, etc.
Reply


Messages In This Thread
csv to array - by Vblaze10 - May-15-2018, 09:53 PM
RE: csv to array - by Larz60+ - May-16-2018, 01:49 AM
RE: csv to array - by Vblaze10 - May-16-2018, 04:03 AM
RE: csv to array - by volcano63 - May-16-2018, 06:09 AM
RE: csv to array - by scidam - May-16-2018, 01:53 AM
RE: csv to array - by Larz60+ - May-16-2018, 04:46 AM

Forum Jump:

User Panel Messages

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