Coding Using An Example Code Using Pandas Apply Function To Dataframe