Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Replace Missing Values with Interpolation | Data Cleaning
Preprocessing Data
course content

Зміст курсу

Preprocessing Data

Preprocessing Data

1. Data Exploration
2. Data Cleaning
3. Data Validation
4. Normalization & Standardization
5. Data Encoding

Replace Missing Values with Interpolation

Another approach to deal with numerical data is using interpolation. Each NaN value will be replaced with the result of interpolation between the previous and the next entry over the column. Let's apply the interpolate() function to numeric column Age by setting the limit direction to forward. This means that linear interpolation is applied from the first line to the last.

1
data = data.interpolate(method = 'linear', limit_direction = 'forward')
copy

Завдання

Fill the empty places in the code. Compare the data in Age column before and after using interpolation (look at the last 10 rows).

Завдання

Fill the empty places in the code. Compare the data in Age column before and after using interpolation (look at the last 10 rows).

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 2. Розділ 6
toggle bottom row

Replace Missing Values with Interpolation

Another approach to deal with numerical data is using interpolation. Each NaN value will be replaced with the result of interpolation between the previous and the next entry over the column. Let's apply the interpolate() function to numeric column Age by setting the limit direction to forward. This means that linear interpolation is applied from the first line to the last.

1
data = data.interpolate(method = 'linear', limit_direction = 'forward')
copy

Завдання

Fill the empty places in the code. Compare the data in Age column before and after using interpolation (look at the last 10 rows).

Завдання

Fill the empty places in the code. Compare the data in Age column before and after using interpolation (look at the last 10 rows).

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Секція 2. Розділ 6
toggle bottom row

Replace Missing Values with Interpolation

Another approach to deal with numerical data is using interpolation. Each NaN value will be replaced with the result of interpolation between the previous and the next entry over the column. Let's apply the interpolate() function to numeric column Age by setting the limit direction to forward. This means that linear interpolation is applied from the first line to the last.

1
data = data.interpolate(method = 'linear', limit_direction = 'forward')
copy

Завдання

Fill the empty places in the code. Compare the data in Age column before and after using interpolation (look at the last 10 rows).

Завдання

Fill the empty places in the code. Compare the data in Age column before and after using interpolation (look at the last 10 rows).

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів

Все було зрозуміло?

Another approach to deal with numerical data is using interpolation. Each NaN value will be replaced with the result of interpolation between the previous and the next entry over the column. Let's apply the interpolate() function to numeric column Age by setting the limit direction to forward. This means that linear interpolation is applied from the first line to the last.

1
data = data.interpolate(method = 'linear', limit_direction = 'forward')
copy

Завдання

Fill the empty places in the code. Compare the data in Age column before and after using interpolation (look at the last 10 rows).

Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Секція 2. Розділ 6
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt