I have a dataset like below
category_data
userid Frequency Category SubCategory
0 axisbankltdi 13705 BFSI Banking
1 nokiasiemens34 8642 Telecom EnterpriseTelecom
2 videocond2h 4699 Utilities DTH
3 pnb 3201 BFSI Banking
4 nokiasiemens7 2536 Telecom EnterpriseTelecom
5 one97paytm 2318 BFSI Payments
figureout_data
userid Frequency Category tonumber fromnumber
0 axisbankltdi 13705 9156283564 56454
1 nokiasiemens34 8642 9985986589 54545
2 videocond2h 4699 32354654665 36259
3 pnb 3201 5465546646 414845
4 nokiasiemens7 2536 54354615454 551456
5 one97paytm 2318 45456465146 465466
6 nokiasiemens34 8642 9985986589 54545
7 videocond2h 4699 32354654665 36259
8 pnb 3201 5465546646 414845
9 nokiasiemens7 2536 54354615454 551456
expected output:
userid Frequency Category tonumber fromnumber
0 axisbankltdi 13705 BFSI 9156283564 56454
1 nokiasiemens34 8642 Telecom 9985986589 54545
2 videocond2h 4699 Utilities 32354654665 36259
3 pnb 3201 BFSI 5465546646 414845
4 nokiasiemens7 2536 Telecom 54354615454 551456
5 one97paytm 2318 BFSI 45456465146 465466
6 nokiasiemens34 8642 Telecom 9985986589 54545
7 videocond2h 4699 Utilities 32354654665 36259
8 pnb 3201 BFSI 5465546646 414845
9 nokiasiemens7 2536 Telecom 54354615454 551456
So i need to fill the variable called Categories by looking at category_data. please help me on this