How To Create A New Dataframe In Python Methods Vs Functions