Return Dataframe From Function Python Definition Range