The Python Oracle

Creating a Pandas DataFrame from a Numpy array: How do I specify the index column and column headers?

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

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 2 Looping

--

Chapters
00:00 Question
00:49 Accepted answer (Score 418)
01:17 Answer 2 (Score 166)
01:43 Answer 3 (Score 28)
02:08 Answer 4 (Score 27)
02:26 Thank you

--

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

Accepted answer links:
[DataFrame]: http://pandas.pydata.org/pandas-docs/sta...

Answer 3 links:
[numpy record arrays]: http://docs.scipy.org/doc/numpy-1.10.1/u...
[this great answer]: https://stackoverflow.com/a/21647198/943...

--

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

--

Tags
#python #pandas #numpy

#avk47