[Solved] Can I change the dtype of mean function in Pandas? I want to change it to int type [closed]
[ad_1] You can then apply a transformation to the result. df[‘mean’] = df[‘mean’].apply(lambda x: round(x)) or, if you want to truncate: df[‘mean’] = df[‘mean’].apply(lambda x: int(x)) 0 [ad_2] solved Can I change the dtype of mean function in Pandas? I want to change it to int type [closed]