Data Analysis with Python - Pandas Creating Columns

Tell us what’s happening:

Describe your issue in detail here.

certificates_earned['Certificates per month'] = round(
    certificates_earned['Certificates'] /
    certificates_earned['Time (in months)'], 2

Referencing the above code, what is the number 2 in this code good for? and what is "round". good for? I may have missed something - please enlighten me, this would be a great help...

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Challenge Information:

Data Analysis with Python - Pandas Creating Columns

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.

Did you try searching for it?

2 Likes

Actually… this is what I forgot to consult… thank you for pointing this out, I did not search it in the first place, Thanks again for a great assistance…