I am searching for fastest method to get each value in my column with only two digits after dot without using round()
pd.Series:
input:
1.42345
12.33444
111.66777
2.059999
expected output:
1.42
12.33
111.66
2.05
I am thinking to convert it to string and then use slice
but in slice i need to use start and stop options, its hard when digits before are in different lenght.
If there will be no other option I will use .str.extract(r'([0-9]{1,5}.[0-9]{2})')
, but maybe there is? some limitations to show float without rounding?
its not duplicate topic, solution from this one is rounding values :Truncate to three decimals in Python