Round floats in a dataframe to nearest specific float values (rounding to a non integer list)

前端 未结 0 1075
無奈伤痛
無奈伤痛 2021-01-31 18:13

I have a dataframe like:

dict_ = {\'Col1\':[0.54523, 0.24223, 0.94234],\'Col2\':[0.992324, 0.274336, 0.245435]}
df = pd.DataFrame(dict_, columns=dict_.keys())


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题