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
セクション 2.  6
single

single

bookReplace 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).

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 2.  6
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt