Skip to content

Instantly share code, notes, and snippets.

@kvnkho
Last active February 11, 2022 04:16
Show Gist options
  • Save kvnkho/3401e3283e77f33216d6fd1c800a7c60 to your computer and use it in GitHub Desktop.
Save kvnkho/3401e3283e77f33216d6fd1c800a7c60 to your computer and use it in GitHub Desktop.
import pandas as pd
from typing import Dict
input_df = pd.DataFrame({"id":[0,1,2], "value": (["A", "B", "C"])})
mapping = {"A": "Apple", "B": "Banana", "C": "Carrot"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment