float_df = pd.DataFrame((0.45*np.arange(1,9)).reshape(4,2), index=[1,2,3,4], columns=['col_one', 'col_two'], dtype=float)# print(float_df.round({'col_one': 2}))# print(float_df.round({'col_one': 1, 'col_two': 2}))# print(float_df.T) # 行列互换 转置for col…