MulaiMulai sekarang secara gratis

Find missing values

In the field of Data Science, it is common to encounter datasets with missing values. This is especially true in the case of time series data, where missing values can occur if a measurement fails to record the value at a specific timestamp. To count the number of missing values in a DataFrame called df that contains time series data, you can use the command:

missing_values = df.isnull().sum()

In this exercise, you will learn how to find whether your data contains any missing values.

Latihan ini adalah bagian dari kursus

Visualizing Time Series Data in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Display first seven rows of co2_levels
print(___.____(____))
Edit dan Jalankan Kode