Create DataFrame from dictionary
Your rawData (which should be ideally named raw_data, python suggests a style guide to name variables and functions in lower_snake_case) is already in a list structure. You can manipulate this in place, without having to process the whole dataset manually.
for row in raw_data:
    row.update(row.pop(&quot;prices&quot;))