| Pollutant | Delhi | London | Paris |
|---|---|---|---|
| PM25 | 12 | 36 | 43 |
| Ozone | 120 | 34 | 42 |
| NO2 | 192 | 35 | 12 |
I'm trying to convert a pandas DataFrame like the one above to the one below. Any help would be greatly appreciated! Thank you in advance.
| Pollutant | Level | City |
|---|---|---|
| PM25 | 12 | Delhi |
| Ozone | 120 | Delhi |
| NO2 | 192 | Delhi |
| PM25 | 36 | London |
| Ozone | 34 | London |
| NO2 | 35 | London |
| PM25 | 43 | Paris |
| Ozone | 42 | Paris |
| NO2 | 12 | Paris |