Last active
February 11, 2022 04:17
-
-
Save kvnkho/a77bb7da61394ab5be2d10df999f5e2f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 map_letter_to_food(df: pd.DataFrame, mapping: Dict) -> pd.DataFrame: | |
| df["food"] = df["value"].map(mapping) | |
| return df |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment