Python Function Returning Dataframe Pandas Documentation Locust