BaşlayınÜcretsiz Başlayın

Combining annotations and color

You believe that Long Beach, California has a smog problem. Using the pollution data, you'll attempt to make a point for increasing smog reduction regulations using your data visualization wizardry. Specifically, you want to focus on the relationship of CO to O3 levels during 2014 at a city council meeting.

To emphasize how Long Beach compares to a set of peer cities, you've decided to highlight Long Beach and draw attention to a particularly bad day where the CO level was 1.6 and O3 was 0.072 using an annotation.

Bu egzersiz

Improving Your Data Visualizations in Python

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Make a vector where Long Beach is orangered; else lightgray
is_lb = ['____' if city  ==  '____' else '____' for city in pollution['city']]
Kodu Düzenle ve Çalıştır