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

Plotting the temperature

In this exercise, you'll examine the temperature columns from the weather dataset to assess whether the data seems trustworthy. First you'll print the summary statistics, and then you'll visualize the data using a box plot.

When deciding whether the values seem reasonable, keep in mind that the temperature is measured in degrees Fahrenheit, not Celsius!

Bu egzersiz

Analyzing Police Activity with pandas

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

Egzersiz talimatları

  • Read weather.csv into a DataFrame named weather.
  • Select the temperature columns (TMIN, TAVG, TMAX) and print their summary statistics using the .describe() method.
  • Create a box plot to visualize the temperature columns.
  • Display the plot.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Read 'weather.csv' into a DataFrame named 'weather'


# Describe the temperature columns
print(____)

# Create a box plot of the temperature columns
____.plot(kind='box')

# Display the plot
Kodu Düzenle ve Çalıştır