Penguin group counts
Looking at the penguins dataset, your colleague gets curious about how many observations of the different species there are. With your knowledge of groupby(), can you help them?
The penguins dataset and the DataFrames package have been loaded for you.
Diese Übung ist Teil des Kurses
Data Manipulation in Julia
Anleitung zur Übung
- Create a
penguin_speciesGroupedDataFrame by groupingpenguinsbyspeciescolumn. - Get the number of rows per
penguin_species, naming the resulting column aspenguins_observed, and sorting the results in descending order ofpenguins_observed.
Interaktive Übung
Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.
# Create penguin_species
____ = ____(____)
# Count the observations per group and rename the column, then sort
____(____(penguin_species, ____), ____, ____)