How To Summarize A Dataframe In Python Methods