1

I have this data

Zip Codes  Year     Mean
2443       2016    92.869565
           2017    93.364486
           2018    93.070000
           2019    93.760000
2445       2016    94.848837
                     ...    
27326      2019    99.000000
27334      2016    94.250000
           2017    95.625000
           2018    96.812500
           2019    97.666667

i have the above dataframe from pandas, which has about 1000 zip codes for 4 different years for each zipcode and a mean value of the height of a specific plant.

What is the best possible way to represent this data ?

Margue
  • 43
  • 6
  • How about filling in the map with the average data for the year, and then creating four graphs for four years? I propose to draw four years in [this example](https://plotly.com/python/mapbox-county-choropleth/). – r-beginners Jan 08 '21 at 05:33

1 Answers1

1

Use a heat map (seaborn.heatmap) with zip codes on rows, years on columns, and cell color by mean plant height.

SEE ALSO:
Plotting a 2D heatmap with Matplotlib
Making heatmap from pandas DataFrame
The Python Graph Gallery: Heatmap

Timur Shtatland
  • 12,024
  • 2
  • 30
  • 47