
随堂测验-数据预处理

Quiz
•
Computers
•
University
•
Medium

Jason He
Used 3+ times
FREE Resource
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 进行数据清洗时,可以做哪些操作?
删除重复值
重命名列名
数据类型转换
画图
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
2425 S5 ICT Lesson Quiz - DB Normalization

Quiz
•
11th Grade - University
20 questions
Pandas基础

Quiz
•
University
10 questions
6-文件操作

Quiz
•
University
10 questions
2-列表与元组

Quiz
•
University
10 questions
数据采集工具

Quiz
•
University
10 questions
排序测试

Quiz
•
University
10 questions
初识数据采集

Quiz
•
University
20 questions
2023.09——Python基础语法

Quiz
•
University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
12 questions
Civil War

Quiz
•
8th Grade - University
18 questions
Parent Functions

Quiz
•
9th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
19 questions
Primary v. Secondary Sources

Quiz
•
6th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
20 questions
Disney Trivia

Quiz
•
University