BW #42: Plant hardiness

Which plants will thrive in which locations? This week, we compare the 2012 and 2023 "plant hardiness zone" reports, examining how and where temperatures have changed.

BW #42: Plant hardiness

When I was little, my mother tried to teach me the names of flowers and trees. Let's be charitable, and say that I didn't pay very much attention. I'm a bit better nowadays, and enjoy the many colorful flowers in my backyard. Plus, I take a daily early-morning walk through multiple parks, giving me a chance to see flowers. But let's be honest; aside from a few standouts, I'm still pretty bad at knowing just what I'm seeing.

Fortunately, the world is full of people who know more than I do about plants. As they know, not all plants are appropriate for all climates and seasons. Which raises the question: What's appropriate for where you live? If you live in Phoenix, Arizona, then you're unlikely to be planting the same flowers as people in Minneapolis, Minnesota.

The US Department of Agriculture (USDA) has figured this out, at least for residents of the continental United States: They defined 13 different zones, each of whose mean minimum temperature varies by about 10 degrees Fahrenheit. Each zone is divided into two sub-zones, labeled a and b, with 5-degree spreads. The basic idea is that if you live in zone 5a, and you move somewhere else that's also in zone 5a, you should be able to grow the same plants.

The data was collected by the PRISM research group at Oregon State University (https://prism.oregonstate.edu/projects/plant_hardiness_zones.php). A new data set was just released on November 15th by the US Department of Agriculture (the USDA, at https://www.ars.usda.gov/news-events/news/research-news/2023/usda-unveils-updated-plant-hardiness-zone-map/). I learned about it from John Dickerson's "chatter" in the most recent Slate Political Gabfest (https://slate.com/podcasts/political-gabfest/2023/11/issue-polling-israel-palestine-oslo-sam-altman-openai). It was also described in an NPR report, at https://www.npr.org/2023/11/17/1213600629/-it-feels-like-im-not-crazy-gardeners-arent-surprised-as-usda-updates-key-map.

This week, we'll look through this data as released in 2012 and again in 2023, to better understand how the temperature zones have changed (and how they haven't), and where they have changed the most.

Data and eight questions

This week's data comes in several parts:

First, we'll use the latest (2023) Plant Hardiness Zone report from https://prism.oregonstate.edu/projects/plant_hardiness_zones.php . The data comes in several formats and parts; we'll use the CSV file that provides us with data per US zip code:

https://prism.oregonstate.edu/projects/phm_data/phzm_us_zipcode_2023.csv

Next, we'll download data from the previous survey in 2012, described at https://prism.oregonstate.edu/projects/plant_hardiness_zones_2012.php :

https://prism.oregonstate.edu/projects/public/phm/2012/phm_us_zipcode_2012.csv

Finally, we'll download and work with a CSV file containing US zip codes:

http://uszipcodelist.com/zip_code_database.csv

I have eight tasks and questions for you this week. Among the learning goals are: Setting dtypes, string handling, multi-indexes, joins, and plotting:

  • Create data frames from the 2012 and 2023 plant hardiness zone data. Each data frame should have a 5-character "zipcode" column, as well as a "zone" column with the zone's name and a "trange" column with the range it includes. Make the "zipcode" column the index.
  • Create a data frame from the zip code database, in which the 5-character "zip" column is the index.