KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am new to python so this may sound very basic. I have imported a csv file using csv2rec. The first row has headers. I want to change the headers to 'x', 'y', 'z'. What's the best way of doing this? >>> import matplotlib >>> import matplotlib.mlab as mlab >>> r= mlab.csv2rec('HeightWeight.csv', delimiter= ',') >>> names= r.dtype.names >>> for i in names: print i index heightinches weightpounds
Tags (comma-separated)
Save Edits
Cancel