The Python Oracle

How do I read CSV data into a record array in NumPy?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Track title: CC O Beethoven - Piano Sonata No 3 in C

--

Chapters
00:00 Question
00:31 Accepted answer (Score 839)
00:47 Answer 2 (Score 237)
02:18 Answer 3 (Score 91)
03:10 Answer 4 (Score 70)
03:25 Thank you

--

Full question
https://stackoverflow.com/questions/3518...

Question links:
[csv.reader()]: https://stackoverflow.com/questions/2859...

Accepted answer links:
[numpy.genfromtxt()]: http://docs.scipy.org/doc/numpy/referenc...

Answer 2 links:
[pandas.read_csv]: http://pandas.pydata.org/pandas-docs/sta...
[DataFrame]: http://pandas.pydata.org/pandas-docs/dev...
[many useful data manipulation functions]: https://stackoverflow.com/a/11077215/146...
[numpy.genfromtxt]: http://docs.scipy.org/doc/numpy/referenc...
[record array]: http://docs.scipy.org/doc/numpy/user/bas...
[multiple data types (including strings) can be easily imported]: https://stackoverflow.com/a/15481761

Answer 4 links:
[recfromcsv()]: https://numpy.org/doc/stable/reference/g...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #numpy #scipy #genfromtxt

#avk47