i want to convert my categorical value into one hot encoding/get_dummies but i am having 4340 unique categorical value. I am getting memory error because of this. How can i handle this type of large categorical values.
Update:
Since the data is sensitive so i can not post all the data i am giving the column name something different but the values are like that and since it is not possible to post all 4340 unique categorical values i am giving small sample.
index| ID
-------------
46 | R05
61 | M9901
72 | J301
103 | F411
135 | R070
139 | J069