Hi There,
I have thousands of dictionaries saved in one jupyter notebook (controlled by IT), and i would like to utitlize some of the dicitonies in to my jupyter notebook.Is there a way i can achieve this.
Example: IT-Jupyter notebook contains below dictionary (just a sample):
I would like to utilize above dictionary in to my jupyter notebook. Dummy df created below for reference.
Appriciate your advise here.
I have thousands of dictionaries saved in one jupyter notebook (controlled by IT), and i would like to utitlize some of the dicitonies in to my jupyter notebook.Is there a way i can achieve this.
Example: IT-Jupyter notebook contains below dictionary (just a sample):
Code:
dict_sample={'HR':'Human Resource','FIN':'Finance','LG':'Legal'}
Code:
data = {'name': ['John', 'Aaron', 'Anie'], 'Dept': ['HR', 'FIN', 'LG']} df = pd.DataFrame(data, columns = ['name','Dept']) df["Dept"]=df["Dept"].map(dict_sample) df
Comment