I ve done a groupby('column_name',axis=1).agg(sum)
on my dataframe and it is 20000 lines.
Edit: I would like to see the index of the lines that are duplicated before the groupby only, ie all the lines that have a similar value in the groupby column. How can i do that?
(Im asking because i get a warning and i would like to check the result of my groupby
FutureWarning: Dropping invalid columns in DataFrameGroupBy.add is deprecated. In a future version, a TypeError will be raised. Before calling .add, select only columns which should be valid for the function.
)
I have tried to search the forum and google but i only get results of groupby index.