Pyspark Create Empty Dataframe In Python Methods Vs Functions