Working With Pandas Dataframe In Python Methods