I have this python dictionary and I want to write this data to an Excel file.
NOTE: there are many categories and each category has many cars (I used 2 categories for simplicity)
data = {"Category": {"Diesel" : [{
"Name": "Land Rover",
"Description":"No Description Found",
"Price": "£ x" }],
"Electric" : [{"Name": "Tesla Model X",
"Description":"No Description Found",
"Price": "£ x" }]
}
}
Desired output:
| Category | Name | Description | Price |
|---|---|---|---|
| Diesel | |||
| Land Rover | No Description Found | £ x | |
| Electric | |||
| Tesla Model X | No Description Found | £ x |