Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python pandas convert series to percent

df[['PercentageSplit']] = ( 100 * df[['PercentageSplit']] ).round(2).astype(str) + "%" # The rounding is optional
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #pandas #convert #series #percent
ADD COMMENT
Topic
Name
7+9 =