User Tools

Site Tools


data_manipulation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
data_manipulation [2016/10/07 14:29]
vincenzo
data_manipulation [2016/10/07 14:30] (current)
vincenzo
Line 133: Line 133:
  
 </​code>​ </​code>​
- 
-* Split delimited values in df column into 2 new columns 
-df['​new_col1'​],​ df['​new_col2'​] = zip(*df['​original_col'​].apply(lambda x: x.split(':​ ', 1))) 
  
  
  
  
data_manipulation.txt ยท Last modified: 2016/10/07 14:30 by vincenzo