You have a part of the Penguins dataset:
weighted_penguins.head()
Output:
+----+-----------+-----------+---------------+
| | species | island | body_mass_g |
|----+-----------+-----------+---------------|
| 0 | Adelie | Torgersen | 4250.0 |
| 1 | Gentoo | Biscoe | 5200.0 |
| 2 | Chinstrap | Dream | 4400.0 |
| 3 | Gentoo | Biscoe | 4550.0 |
| 4 | Chinstrap | Dream | 3700.0 |
+----+-----------+-----------+---------------+
Replace the values in the dataset with thin penguin if a penguin weighs less than 3300 grams and with plump penguin if a penguin is heavier than 4000 grams. Store the result in weighted_penguins. Do not print the weighted_penguins dataframe.
Tip: You can do it by applying the .where() method twice, one after another.