1

enter image description hereenter image description hereenter image description here zipcode =[str(x) for x in zipcode] label = list(range(len(zipcode)))

directory = {}
  for i in label:
  directory[zipcode[i]] = i

data['zipcode']=data['zipcode'].map(directory)

[t][1]

After the above code, I am getting whole columns as Null values instead of getting all in the numerical label

1 Answers1

0

dtype of the zipcode I had change but I have kept the sampe dtypes of the zipcode that was previous one so from that I have got the label on the columns