Last active
December 30, 2018 12:39
-
-
Save shotleft/8e9712e1b7736d148793d5d5f7cbf741 to your computer and use it in GitHub Desktop.
Avoid_for_loops_2
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
df_grouped = df.groupby("Type") | |
df_list_events = df_grouped['Event'].apply(lambda x: list(x)).to_frame().reset_index() | |
df_list_events |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment