Search Header Logo

随堂测验-数据预处理

Authored by Jason He

Computers

University

Used 3+ times

随堂测验-数据预处理
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

在 Pandas 中,哪个函数用于检查缺失值?

pd.isnull()

pd.fillna()

pd.dropna()

pd.replace()

2.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

以下哪一个方法可以将列 'age' 的缺失值替换为该列的平均值?

df['age'].dropna()

df['age'].replace(df['age'].mean())

df['age'].fillna(df['age'].mean())

df.fillna('age', df['age'].mean())

3.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

使用 dropna() 方法默认删除:

所有为0的值

包含空字符串的行

所有重复值

所有含有缺失值的行

4.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

哪一个方法可以重新设置 DataFrame 的行索引?

df.set_index()

df.reset_index()

df.rename_index()

df.sort_index()

5.

MULTIPLE CHOICE QUESTION

20 sec • 5 pts

关于异常值的说法,下列选项中描述错误的是()。

异常值是指样本中明显偏离其余观测值的个别值


可以使用3σ原则检测异常

可以使用Pandas中的箱线图检测异常值

异常值可以使用其它的值来替换

6.

MULTIPLE CHOICE QUESTION

30 sec • 10 pts

以下哪些方法可用于处理缺失数据?

fillna()

dropna()

isnull()

忽略缺失数据sort_values()

7.

MULTIPLE SELECT QUESTION

30 sec • 10 pts

使用 Pandas 进行数据清洗时,可以做哪些操作?

删除重复值

重命名列名

数据类型转换

画图

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?