Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove percentage in python

df['col'] = df['col'].str.rstrip('%').astype('float') / 100.0
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #percentage #python
ADD COMMENT
Topic
Name
6+5 =