text_plain_output_1.png
import pandas as pd

from fastai.tabular.all import *
pd.options.display.float_format = '{:.2f}'.format
set_seed(42)

data = pd.read_csv('../input/medias-cost-prediction-in-foodmart/media prediction and its cost.csv')

Name = sorted(data['class'].unique().tolist())
print(Name)
N = list(range(len(Name)))
normal_mapping = dict(zip(Name, N))
reverse_mapping = dict(zip(N, Name))
print(normal_mapping)