Suppose I have a dataframe like:
Column1 Column2 Column3 Column4
1 I am abc
3 on weekend holidays
1 I do business
2 I am xyz
3 I do nothing
2 I do job
after applying the groupby() using pandas expected result is:
Column1 Column2
1 I am abc I do business
2 I am Xyz I do job
3 On weekend holidays I do nothing
The required aggregation is applicable first for the column than by rows.
How it can be performed?