python pandas convert series to percent
df[['PercentageSplit']] = ( 100 * df[['PercentageSplit']] ).round(2).astype(str) + "%" # The rounding is optional
Are there any code examples left?
New code examples in category Python
df[['PercentageSplit']] = ( 100 * df[['PercentageSplit']] ).round(2).astype(str) + "%" # The rounding is optional