User Tools

Site Tools


renaming_strings

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
renaming_strings [2016/10/07 15:42]
vincenzo
renaming_strings [2016/10/07 15:45] (current)
vincenzo
Line 32: Line 32:
 </​code>​ </​code>​
  
 +**Renaming by replacing a character**
 +<code python>
 +applicata.rename(columns=lambda x: x.strip().replace("​ ", ""​), ​
 +                 ​inplace=True)
 +</​code>​
renaming_strings.txt ยท Last modified: 2016/10/07 15:45 by vincenzo