Last answered:

07 Nov 2021

Posted on:

28 Oct 2021

0

Question about apply() application

Why we didin`t use the same apply() approach to extract months to separate column?

1 answers ( 0 marked as helpful)
Instructor
Posted on:

07 Nov 2021

0

Hi Aleksey!

Thanks for reaching out.

Great question!
Actually, we could have used the .apply() function to create the "Day of the Week" column, too. However, simply for teaching purposes, we decided to diversify and show how to achieve the same result by using a for- loop, which is another technique that professionals may prefer using in a similar scenario.

Hope this helps.
Best,
Martin

Submit an answer