python - Pandas Dataframe How to cut off float decimal points without rounding? - Stack Overflow

PHOTO EMBED

Tue May 11 2021 15:02:13 GMT+0000 (Coordinated Universal Time)

Saved by @arielvol #python

x = 1.123456
float( '%.3f'%(x) )
content_copyCOPY

https://stackoverflow.com/questions/56780561/pandas-dataframe-how-to-cut-off-float-decimal-points-without-rounding