DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+1 =
Submit