New to Python, as part of an assessment I need to collect data samples from a dataset, the information has been put through a labelencoder with:
le = LabelEncoder()
for i in columns:
#print(i)
data[i] = le.fit_transform(data[i])
data.head()
this shows the below table.
if i use the command:
data['native-country'].value_counts()
I will get numerical values when at this point I want to see the actual country rather than the numerical value assigned. how do I do this?
thanks.
