hi Bloggers,
im looking for a solution to obtain data from Dataframe List, which was pulled from Mongo Lite
the data looks like below
"user_master" : [
{ "ID": "ID101", "classes": [{"**NY**": "A, B, C, B"},{"LD": "A, B, C, B"},{"SG": "A, B, C, B"}},
{ "ID": "ID102", "classes": [{"LD": "A, B, C, B"},{"SG": "A, B, C, B"}},
{ "ID": "ID103", "classes": [{"NY": "A, B, C, B"},{"LD": "A, B, C, B"}},
]
"final_data" :[
{ "ID": "ID101", "loc":"**NY**", "cls": classes[loc]},
{ "ID": "ID101", "loc":"SG", "cls": classes[loc]},
{ "ID": "ID102", "loc":"LD", "cls": classes[loc]},
{ "ID": "ID103", "loc":"NY", "cls": classes[loc]},
]
from user_master i need to collect the cls field based on the final_data.loc as final_data..