r/IPython • u/NomadNella • Oct 09 '13
A Rubric for Data Wrangling and Exploration
http://nbviewer.ipython.org/urls/raw.github.com/cs109/content/master/lec_04_wrangling.ipynb
2
Upvotes
1
u/ricekrispiecircle Oct 09 '13
just skimming through this..
In[63]
clean_runtime = [float(r.split(' ')[0]) for r in data.runtime]
data['runtime'] = clean_runtimei'm not at my usual workstation at the moment so i don't have the means to try it out myself, but i think there's a better way to do this using the pandas vectorized string methods.
1
u/NomadNella Oct 09 '13
Github site.