I have a dataset of size 1 million and type dataframe.
Id description 1 bc single phase acr 2 conditioning accum 3 dsply value acand dictionary of size 2927 which looks like as follow:
Key Value accum accumulator bb baseboard dsply display
executed the following code to replace the dictionary key found in dataframe with its value
dataset=dataset.replace(dict, regex=True)
but it will consume more time to excecute i.e 104.07914903743769 sec for 2000 dataset and have 8GB RAM I need to apply this code for millions of dataset. so can anyone tell me how to reduce the excecution time? and also is there any alternate way to do the task?