How To Create A Dataframe Using Pandas Apply Method