Question: Out[28]: { MODEL_ID': 6, MODEL_NAME': device_rec MODEL_RUN_TS': '20210910 00:00:00', 'VALIDITY TS': '20220310 00:00:00) 'SERVICE NUMBER': '447867640171 'OUTPUT': [{'RECOMMENDED SKUE 200399) RECOMMENDED_DEVICESamsung Galaxy S9 midnight black',
![Out[28]: { "MODEL_ID': 6, "MODEL_NAME': "device_rec "MODEL_RUN_TS': '20210910 00:00:00', 'VALIDITY TS':](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f65a407c0ff_99166f65a3fd9bcd.jpg)
Out[28]: { "MODEL_ID': 6, "MODEL_NAME': "device_rec "MODEL_RUN_TS': '20210910 00:00:00', 'VALIDITY TS': '20220310 00:00:00) 'SERVICE NUMBER': '447867640171 'OUTPUT': [{'RECOMMENDED SKUE 200399) RECOMMENDED_DEVICE""Samsung Galaxy S9 midnight black', RECOMMENDED_METHOD PRIORITY, RECOMMENDED_METHOD: 'most common_per_os', "PRODUCT_CATALOGUE_NAME": "Samsung Galaxy S9 midnight black', REC_RANK': 6}, { RECOMMENDED_SKU: 213258', RECOMMENDED DEVICE: Samsung S21 56 grey 128GB', 'RECOMMENDED METHOD PRIORITY": 3, 'RECOMMENDED_METHOD : most common_per_os, "PRODUCT_CATALOGUE_NAME: Samsung S21 5G grey 128GB', REC_RANK': 2}, {'RECOMMENDED SKU': 2148801 RECOMMENDED DEVICE": SAMSUNG GALAXY A525 5G black', RECOMMENDED METHOD PRIORITY: 3, RECOMMENDED METHOD: most common penos, "PRODUCT CATALOGUE NAME: SAMSUNG GALAXY A52s 5G black', "REC_RANK":8}, {"RECOMMENDED SKU': 2074331 "RECOMMENDED DEVICE 'Samsung Galaxy S20 Plus 128GB grey', "RECOMMENDED METHOD PRIORITY": 3, "RECOMMENDED METHOD: most common per os, "PRODUCT_CATALOGUE_NAME: "Samsung Galaxy S20 Plus 128GB grey', REC_RANK': 4}, {'RECOMMENDED SKU: 205501 'RECOMMENDED DEVICE": Apple iPhone SE 2020 64GB black', RECOMMENDED_METHOD PRIORITY 3, "RECOMMENDED_METHOD: most common_per_os', "PRODUCT_CATALOGUE NAME: Apple iPhone SE 2020 64GB black', REC_RANK': 7}, {'RECOMMENDED_SKU': 211686 RECOMMENDED_DEVICE': 'Google Pixel 5 5G sage', RECOMMENDED_METHOD PRIORITY': 3, RECOMMENDED_METHOD': 'most common_per_os', "PRODUCT_CATALOGUE_NAME': 'Google Pixel 5 5G sage', REC_RANK': 5}, {'RECOMMENDED_SKU': '213813', "RECOMMENDED_DEVICE': 'Xiaomi Mi 11 grey', RECOMMENDED_METHOD PRIORITY': 3, "RECOMMENDED METHOD': 'most common_per_os', "PRODUCT_CATALOGUE NAME': 'Xiaomi Mi 11 grey'. REC_RANK": 1))) In [ ]: PLEASE do IN PYTHON PYTHON PYTHON I want change following things by using array given below "MODEL_RUN_TS" Date change should be less than 60 days *VALIDITY TS' Date change should be more than 90 days *SERVICE NUMBER should be replace with sn [31201466,31209876,34529876,674358891 RECOMMENDED_SKU for first index replace with rec_skul-(29,30,46,78] RECOMMENDED_SKU' for second index replace with rec_sku2 (89,76,43,13] same for other "RECOMMENDED_SKU: you can take array value with your own after this save this file in json format in particular folder Please do this in Python show output I will definitely give 5 upvote. If you dont know how to do this dont attemt I will give downvote surely please do in python I will give upvote surely save file in particular folder please do asap. show output please Out[28]: { "MODEL_ID': 6, "MODEL_NAME': "device_rec "MODEL_RUN_TS': '20210910 00:00:00', 'VALIDITY TS': '20220310 00:00:00) 'SERVICE NUMBER': '447867640171 'OUTPUT': [{'RECOMMENDED SKUE 200399) RECOMMENDED_DEVICE""Samsung Galaxy S9 midnight black', RECOMMENDED_METHOD PRIORITY, RECOMMENDED_METHOD: 'most common_per_os', "PRODUCT_CATALOGUE_NAME": "Samsung Galaxy S9 midnight black', REC_RANK': 6}, { RECOMMENDED_SKU: 213258', RECOMMENDED DEVICE: Samsung S21 56 grey 128GB', 'RECOMMENDED METHOD PRIORITY": 3, 'RECOMMENDED_METHOD : most common_per_os, "PRODUCT_CATALOGUE_NAME: Samsung S21 5G grey 128GB', REC_RANK': 2}, {'RECOMMENDED SKU': 2148801 RECOMMENDED DEVICE": SAMSUNG GALAXY A525 5G black', RECOMMENDED METHOD PRIORITY: 3, RECOMMENDED METHOD: most common penos, "PRODUCT CATALOGUE NAME: SAMSUNG GALAXY A52s 5G black', "REC_RANK":8}, {"RECOMMENDED SKU': 2074331 "RECOMMENDED DEVICE 'Samsung Galaxy S20 Plus 128GB grey', "RECOMMENDED METHOD PRIORITY": 3, "RECOMMENDED METHOD: most common per os, "PRODUCT_CATALOGUE_NAME: "Samsung Galaxy S20 Plus 128GB grey', REC_RANK': 4}, {'RECOMMENDED SKU: 205501 'RECOMMENDED DEVICE": Apple iPhone SE 2020 64GB black', RECOMMENDED_METHOD PRIORITY 3, "RECOMMENDED_METHOD: most common_per_os', "PRODUCT_CATALOGUE NAME: Apple iPhone SE 2020 64GB black', REC_RANK': 7}, {'RECOMMENDED_SKU': 211686 RECOMMENDED_DEVICE': 'Google Pixel 5 5G sage', RECOMMENDED_METHOD PRIORITY': 3, RECOMMENDED_METHOD': 'most common_per_os', "PRODUCT_CATALOGUE_NAME': 'Google Pixel 5 5G sage', REC_RANK': 5}, {'RECOMMENDED_SKU': '213813', "RECOMMENDED_DEVICE': 'Xiaomi Mi 11 grey', RECOMMENDED_METHOD PRIORITY': 3, "RECOMMENDED METHOD': 'most common_per_os', "PRODUCT_CATALOGUE NAME': 'Xiaomi Mi 11 grey'. REC_RANK": 1))) In [ ]: PLEASE do IN PYTHON PYTHON PYTHON I want change following things by using array given below "MODEL_RUN_TS" Date change should be less than 60 days *VALIDITY TS' Date change should be more than 90 days *SERVICE NUMBER should be replace with sn [31201466,31209876,34529876,674358891 RECOMMENDED_SKU for first index replace with rec_skul-(29,30,46,78] RECOMMENDED_SKU' for second index replace with rec_sku2 (89,76,43,13] same for other "RECOMMENDED_SKU: you can take array value with your own after this save this file in json format in particular folder Please do this in Python show output I will definitely give 5 upvote. If you dont know how to do this dont attemt I will give downvote surely please do in python I will give upvote surely save file in particular folder please do asap. show output please
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
