Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove repetitive characters from the specified column of a given DataFrame

In [82]:

a.loc[a.diff() != 0]
Out[82]:
1    1
2    2
4    3
5    2
dtype: int64
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #repetitive #characters #column #DataFrame
ADD COMMENT
Topic
Name
3+1 =