I want to split the following list into several lists from the key-value of 'time':'0.00'.
lst = [
{'time':'0.00', 'co2':'18.00'}, {'time':'1.00', 'co2':'28.00'},
{'time':'0.00', 'co2':'38.00'}, {'time':'4.00', 'co2':'12.00'},
{'time':'0.00', 'co2':'20.00'}, {'time':'3.00', 'co2':'18.00'}
]
The result would be:
lst_1 = [{'time':'0.00', 'co2':'18.00'}, {'time':'1.00', 'co2':'28.00'}]
lst_2 = [{'time':'0.00', 'co2':'38.00'}, {'time':'4.00', 'co2':'12.00'}]
lst_3 = [{'time':'0.00', 'co2':'20.00'}, {'time':'3.00', 'co2':'18.00'}]
Any help would be appreciated.