Visualizing Street Tree Population Variance in NYC Using GeoPandas, Plotly, and JavaScript

<h2>And a comparison of the performance of the server and client-side rendering using Plotly Dash and JavaScript</h2> <p><a href="https://medium.com/@jclayton0004?source=post_page-----f12251186342--------------------------------" rel="noopener follow"><img alt="Jerry Clayton" src="https://miro.medium.com/v2/resize:fill:44:44/1*0PEIE-ty5vAETODUY6V99w.png" style="height:44px; width:44px" /></a></p> <p><a href="https://betterprogramming.pub/?source=post_page-----f12251186342--------------------------------" rel="noopener ugc nofollow"><img alt="Better Programming" src="https://miro.medium.com/v2/resize:fill:24:24/1*QNoA3XlXLHz22zQazc0syg.png" style="height:24px; width:24px" /></a></p> <p><a href="https://medium.com/@jclayton0004?source=post_page-----f12251186342--------------------------------" rel="noopener follow">Jerry Clayton</a></p> <p>&middot;</p> <p><a href="https://medium.com/m/signin?actionUrl=https%3A%2F%2Fmedium.com%2F_%2Fsubscribe%2Fuser%2F77357f3c5d3e&amp;operation=register&amp;redirect=https%3A%2F%2Fbetterprogramming.pub%2Fvisualizing-street-tree-population-variance-in-nyc-using-geopandas-plotly-and-javascript-f12251186342&amp;user=Jerry+Clayton&amp;userId=77357f3c5d3e&amp;source=post_page-77357f3c5d3e----f12251186342---------------------post_header-----------" rel="noopener follow">Follow</a></p> <p>Published in</p> <p><a href="https://betterprogramming.pub/?source=post_page-----f12251186342--------------------------------" rel="noopener ugc nofollow">Better Programming</a></p> <p>&middot;</p> <p>17 min read</p> <p>&middot;</p> <p>Jan 27</p> <p>&nbsp;</p> <p>499</p> <p>&nbsp;</p> <p>7</p> <p>&nbsp;</p> <p>&nbsp;</p> <p>&nbsp;</p> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:630/0*Y3m0tIT_oBK2d3ZL" style="height:467px; width:700px" /></p> <p>Photo by&nbsp;<a href="https://unsplash.com/@miteneva?utm_source=medium&amp;utm_medium=referral" rel="noopener ugc nofollow" target="_blank">Maria Teneva</a>&nbsp;on&nbsp;<a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral" rel="noopener ugc nofollow" target="_blank">Unsplash</a></p> <p>In this article, I will:</p> <ul> <li>Use data from the US Census Bureau and the NYC Parks Department to map the change in street tree cover in NYC from 1995 to 2015.</li> <li>Walk you through cleaning, aggregating, analyzing, and visualizing the data using Pandas/GeoPandas and Plotly and then presenting the data interactively using a web app.</li> <li>Discuss how tree and population density varied spatially from 1995&ndash;2020 and the social implications of these changes.</li> <li>Find that the median number of trees per block increased substantially citywide over this period, but that the magnitude of change varied greatly from borough to borough and neighborhood to neighborhood, with some neighborhoods losing trees.</li> <li>Find that targeted tree planting efforts from 1995 onwards ameliorated urban heat island effects in under-forested, historically redlined areas, but also contributed to gentrification.</li> </ul> <p>Finally, I&rsquo;ll compare the performance of the server and client-side rendering (using Plotly Dash and JavaScript) for this web app and find that for simple interactive data visualizations, client-side rendering performs best.</p> <p><a href="https://betterprogramming.pub/visualizing-street-tree-population-variance-in-nyc-using-geopandas-plotly-and-javascript-f12251186342">Visit Now</a></p>