Skip to content
  • Tutorials
    • c programming
      • libraries
    • c++
    • Linux
    • Python
    • batch programming
    • Technology
  • IDE
  • Tools
how to merge rows in pandas dataframe 1

how to merge rows in pandas dataframe

June 13, 2022 by Anurag batra
df = dataframe.groupby(['date', 'sitename', 'name']).sum()

Here is what the above code is Doing:
1. We’re grouping the dataframe by date, sitename, and name.
2. We’re summing the values of the columns in the dataframe.

Categories Python Examples
Post navigation
HBox(children=(FloatProgress(value=
python sort the values in a dictionaryi
© MyEduKit - 2022 . All Rights Reserved.