How to Merge Columns in Rows in a Dataframe that fulfill a Condition, while deleting the Rows
问题 I dont think I can solve it with groupby() or agg() like in these (Question1, Question2)'s. I have a pandas.DataFrame that has one identifier column ( ID_Code ) and some information columns( information 1 and information 2 ). I need to aggregate some of the identifiers. Meaning some have to be deleted and their information has to be added into specific other rows. To illustrate my problem here is something I made up: import pandas as pd inp = [{'ID_Code':1,'information 1':list(x * 3 for x in