Street cherry trees in Vancouver | An exploratory data analysis

Table of contents (TOC)

1 Introduction

There are thousands of cherry trees in Vancouver. The first cherry trees were donated by the mayors of Kobe and Yokohama in the early 1930s. They were meant to be planted at the Japanese cenotaph in Stanley Park, which honours Japanese Canadians who served in World War I.

This exploratory data analysis (EDA) focuses on street trees and aims at answering the following questions:

The EDA uses the street tree dataset. The City of Vancouver Open Data Portal maintains said dataset, which presents information on public trees. The inventory does not include park or private trees.

Back to TOC

2 Data overview

A copy of the dataset was downloaded on 8 April 2022 as a csv file containing the following columns:

The trees DataFrame has 151,420 rows and 19 columns. Geom is not null for 129,891 rows (85.8%), which means coordinates are not available for all trees.

There are no duplicated tress in the DataFrame, i.e., the dataset contains information on 151,420 street trees.

Back to TOC

3 Data wrangling

Back to TOC

4 Exploratory data analysis

This approach may leave out cherry trees whose common names do not contain the string cherry.

Back to TOC

4.1 Number of street cherry trees in Vancouver

Cherry, Plum Or Peach Species may not refer to cherry trees. Therefore, all the rows whose common name column is Cherry, Plum Or Peach Species will be removed.

There are 17,982 street cherry trees in the dataset, i.e., these trees account for approximately 11.9% of the records. Coordinates are available for about 88.9% of the cherry trees.

Back to TOC

4.2 Most common and uncommon street cherry trees

There are 39 types of cherry trees in Vancouver.

Kwanzan Flowering, Akebono Flowering, Ukon Japanese, Japanese Flowering, Mazzard and Pink Perfection cherries are the most common street cherry trees in Vancouver. Kwanzan Flowering and Akebono Flowering cherries account for approximately 57.7% and 13.5% of the cherry trees, respectively.

Weeping Higan, Miyako, Mikuruma-Gaeshi, Bitter and Shogetsu Japanese cherries are the most uncommon cherry trees.

Back to TOC

4.3 Street cherry trees in Vancouver's neighbourhoods

There are at least one thousand street cherry trees in Renfrew-Collingwood, Dunbar-Southlands, Kensington-Cedar Cottage, Sunset, Marpole, Mount Pleasant, Victoria-Fraserview and Riley Park neighbourhoods.

The most sparsely-foliated neighbourhoods with regard to street cherry trees are Fairview, South Cambie, West End, Strathcona and Downtown.

The Akebono Flowering cherry is the second most common street cherry tree in all neighbourhoods with the exception of Downtown, Fairview, Grandview-Woodland, Killarney, Mount Pleasant, Oakridge, Strathcona and West End. In these neighbourhoods, the second most prevalent street cherry trees are:

Back to TOC

4.4 Using maps to visualize street cherry tree locations

Cherry tree coordinates are available for approximately 88.9% of the records. These coordinates can be used to build maps that provide different vantage points to explore the dataset.

Maps will be generated using Folium, a Python library for geospatial data visualization.

Back to TOC

4.4.1 Street cherry tree clusters in Vancouver

Displaying one marker for each of the 15,992 cherry trees would clutter the Vancouver map and potentially hinder data exploration.

Clustered point maps combine markers that are close to each other into clusters. The number on a cluster shows how many markers it has. As the user zooms in, the number of cluster decreases and individual markers begin to appear.

Back to TOC

4.4.2 Locations of uncommon street cherry trees

As there are only 12 trees, it is possible to represent them as markers on a map without compromising the user experience. Hovering over each marker causes a tooltip contaning the name of the tree to appear.

Back to TOC

5 Conclusions

Back to TOC