0

i would like to create a variable using some existing data, lets say for example i have a dataframe

name age work_place
bill  32         IT
alex  20    Finance

and i want to take let say bill and make hisname+workplace into a new variable not knowing his name would be first so the var would look like billIT = # some code

or make another dataframe with billIT as the dataframes name like

billIT = {'Name': 'Bill', 'Age': 32, 'work_place' : 'IT'}
Anurag Dabas
  • 23,866
  • 9
  • 21
  • 41

0 Answers0