This repository was archived by the owner on Jul 18, 2023. It is now read-only.
This repository was archived by the owner on Jul 18, 2023. It is now read-only.
Explain .round()
#22
Open
Description
Using .round()
in Manipulating Columns needs to be explained. If we don’t use it, we will not get to a full integer and then calling int()
will truncate. Compare ((unemployment['year_month'] - unemployment['year']) * 100).astype(int)
and ((unemployment['year_month'] - unemployment['year']) * 100).round(0).astype(int)
- the first starts at 0, second starts at 1
Metadata
Metadata
Assignees
Labels
No labels