Skip to Content
Python数据处理
book

Python数据处理

by Jacqueline Kazil, Katharine Jarmul
July 2017
Intermediate to advanced
398 pages
11h 54m
Chinese
Posts & Telecom Press
Content preview from Python数据处理
172
8
无论你选择哪种测试风格或文件结构,一定要确保前后一致、风格明确。这样你就会知道
在哪里可以找到测试文件,你(和其他人)也可以在必要时运行这些测试代码。
8.6
 小结
本章我们学习了数据标准化的一些基本知识,还有何时适合做数据归一化或删除离群值。
你可以将干净的数据(来自第
6
章)导入到数据库或本地文件中,并且你开始为那些重复
性过程编写了条理更加清晰的函数。
此外,你还学习了用嵌套文件夹和正确命名的文件来组织
Python
仓库结构,开始编写文档
并分析代码。最后,你对测试和编写测试的一些工具有了基本的了解。
8-2
列出了本章讲到的
Python
概念。
8-2Python编程的新概念和新库
概念/库 作用
数据库
insert
方法 利用
insert
命令可以将数据轻松保存到
SQLite
数据库中
CSV writer
对象
利用
csv
库的
writer
类,可以将数据保存到
CSV
文件中
Python
之禅(
import this
Python
程序员一样写代码和思考的哲学
Python
最佳实践
作为一名新的
Python
开发者,应该遵循的最佳实践的基本框架
Python
命令行运行(
if __name__
==
'
__main__
'
:
利用这个代码块对脚本进行格式化,可以在命令行中运行
main
函数
TODO
标记
利用
TODO
注释,很容易发现下一步需要对脚本做哪些改进
Git
https://git-scm.com/
帮助记录代码变化的版本控制系统。对于你想要部署的代码或想要与
他人共享的代码,这一点是绝对必要的,而且对于本地的个人项目也 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

数据科学中的实用统计学(第2版)

数据科学中的实用统计学(第2版)

Peter Bruce, Andrew Bruce, Peter Gedeck
Java持续交付

Java持续交付

Daniel Bryant, Abraham Marín-Pérez
解密金融数据

解密金融数据

Justin Pauley

Publisher Resources

ISBN: 9787115459190