[Solved] How to sum some columns in a row [duplicate] December 13, 2022 by Kirat Use groupby df.groupby("ID")["Cluster"].sum().reset_index() 1 solved How to sum some columns in a row [duplicate]