Heavy task

Report a typo

Here you have a part of the Penguins dataset:

+----+-----------+---------------+--------+
|    | species   |   body_mass_g | sex    |
|----+-----------+---------------+--------|
|  0 | Gentoo    |          5550 | MALE   |
|  1 | Gentoo    |          5850 | MALE   |
|  2 | Adelie    |          3975 | MALE   |
|  3 | Chinstrap |          4050 | MALE   |
|  4 | Adelie    |          3200 | FEMALE |
+----+-----------+---------------+--------+

The body_mass_g column has the float data type. Select the rows with penguins heavier than 4.5 kilograms and print the result.

Note, the DataFrame is already loaded as penguins_df

Write a program in Python 3
# your code here. The DataFrame is already loaded as penguins_df.
print(...)
___

Create a free account to access the full topic