I have this dataframe:
df = pd.DataFrame([
{ "name": "foo", "results": "{'lower_bound': '15000', 'upper_bound': '19999'}"},
{ "name": "bar", "results": "{'lower_bound': '10000', 'upper_bound': '14999'}"}
])
Currently it looks like this:
name results
0 foo {'lower_bound': '15000', 'upper_bound': '19999'}
1 bar {'lower_bound': '10000', 'upper_bound': '14999'}
I'd like to convert the results
column to structured data, so I can filter for rows where df.lower_bound is less than 13000.
How can I do this?