资源 · 指南或文章
Working with Data: Data Preparation
用 pandas 进行数据清洗:检查 DataFrame、处理缺失值和删除重复项。适合准备从杂乱输入开始的数据任务的学习者。
审核日期
打开原站: Working with Data: Data Preparation (在新标签页中打开原网站)添加到路线图
把这个资源放进你正在跟进的路线图。它会作为你自己的补充资源显示;路线图的步骤不会改变,也不计入你已记录的步骤。
来源内容语言:英语
Depending on its source, raw data may contain some inconsistencies that will cause challenges in analysis and modeling. In other words, this data can be categorized as “dirty” and will need to be cleaned up. This lesson focuses on techniques for cleaning and transforming the data to handle challenges of missing, inaccurate, or incomplete data. Topics covered in this lesson will utilize Python and the Pandas library and will be demonstrated in the notebook within this…
PrepKit 概览
本概览由 PrepKit 编辑根据源代码仓库撰写并审核,并非资源本身的文字。
- 适合人群
- 来源未说明适用级别
- 形式
- 课程
涵盖内容
- 清洗为什么重要,以及常见目标:格式、重复项和缺失数据
- 在 Iris 数据集上用 info、head 和 tail 检查数据
- 用 isnull 和 notnull 检测空值,以及 NaN 与 None 的区别
- dropna 的选项,包括 axis、how 和 thresh,以及使用前向和后向填充的 fillna
- duplicated 和 drop_duplicates,包括只检查部分列
使用建议
这是 PrepKit 的学习建议,并非来源的说法。
找一个小型公开数据集,列出你发现的每个空值和重复项,并为每一列写下你会删除还是填充以及原因。目标是能大声为这些选择辩护。
范围与局限
只用 pandas;日期解析和缩放留给链接的 Kaggle 练习。这是一节课,不是面试指南,练习在单独的 notebook 中。
获取方式与形式
GitHub 上 microsoft/Data-Science-For-Beginners 仓库(MIT)中的课程 README,英文,免费阅读。测验通过外部链接提供,作业是单独的文件。
PrepKit 于 2026年10月2日 审核。 资源来源提交: 4d2ac427ad6f
本概览的依据
- 2-Working-With-Data/08-data-preparation/README.md
收录此条目的页面
订阅 PrepKit 通讯
可选。使用 PrepKit 并不需要订阅。