I am trying to cut a column within a Pandas data frame column to 3 decimal places. I do not want to round the data, I just want to cut it so it will match other data. This is what I have tried; however, I get a TypeError: must be a real number, not list.
import pandas as pd
data = {'values': [5.52132, 6.572935, 7.21, 8.755, 9.9989]}
df = pd.DataFrame(data, columns = ['values'])
df['values'] = df['values'].astype(float).apply('%.3f'%['values'])
print(df))