Created
March 13, 2021 15:25
-
-
Save kurasaiteja/2f0497fa7bcc93ae54f4ce039439d485 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def aggregate(df: pd.Series, agg_col: str) -> pd.DataFrame: | |
data = df.groupby("country")[agg_col].max() | |
data = pd.DataFrame(data) | |
return data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment