I have a dataframe like the below and want to remove trailing zeros in pairs of 2.
col1
99990000
11100000
22220000
data = {'col1': ['99990000', '11100000', '22220000']}
df = pd.DataFrame(data=data)
desired result
col1
9999
1110
2222
The below removes all trailing zeros not and not keeping 1110?
df['col1'].str.replace('00+$','')
df['col1'].str.rstrip('00')
