I have a dataset in which if i do
train_df["era"].value_counts()
then it will show 120 different type of categorical values and then if i do
test_df["era"].value_counts()
It do have 310 totally different categorical values like
train_df["era"].value_counts() intersection test_df["era"].value_counts() is {}
So if i will convert it to onehot encoding then it will give me 430 new features and datasize will explode. So my question is
if
train_df["era"].value_counts() intersection test_df["era"].value_counts() is {}
Then can we remove that feature ? Because how will model relate i can think for continuous variable but this is categorical and if it do affect performance then how ?
how to handle this number of different values in categorical data ?