Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas remove char from column

df['result'] = df['result'].str.replace(r'D', '')
df

    time result
1  09:00     52
2  10:00     62
3  11:00     44
4  12:00     30
5  13:00    110
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #remove #char #column
ADD COMMENT
Topic
Name
7+3 =