I have a dataframe like this:
code_0101 code_0102 code_0103 code_0104 ...
0 1 2 3 ...
... ... ... ...
I also have a dictionary:
{'0101': 'cirurgical_procedures', '0102': 'medical_care', '0103': 'remedy', ...}
I want to apply a regex to dataframe column and replace the code numbers accorging to my dictionary, and get something like this:
code_cirurgical_procedures code_medical_care ...
0 1 ...
... ...
How can I do these two steps, specially the second, about the dictionary?