Create Csv File Using Pandas Apply Method