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数据处理
170
8
你的项目文件结构可能和这个类似,但要记得,数据通常都不保存在仓库
中。将项目的数据文件保存在共享文件服务器或本地网络的其他位置。如果
你是独立开发,一定要在其他地方备份。不要将这些大文件提交到你的仓库
中。这样不仅会在需要在新设备上查看仓库时降低工作效率,而且也不是管
理数据的好方法。
我们也建议不要将
db
文件或任何
log
config
文件提交到仓库中。仓库结构应尽可能实用。
你总是可以将预期的文件结构添加到
README.md
文件中,并详细说明去哪里获取数据文
件。
Git
.gitignore
文件
如果你还没有用
Git
https://git-scm.com/
)做版本控制的话,学完本书就会用了!版本
控制可以让你创建仓库来管理和修改代码,并将其分享给团队或其他同事。
在第
14
章中我们将会深入讲解
Git
,但现在我们在讨论仓库结构,希望重点说一
.gitignore
文件(
https://github.com/github/gitignore
)。
.gitignore
文件的作用是,让
Git
忽略某些文件,不要将这些文件上传到仓库中。这个文件使用简单模式来匹配文件名,
与我们在第
7
章中学过的正则表达式类似。
在我们的仓库结构中,我们可以用一个
.gitignore
文件,这样
Git
就不会将任何数据文件
提交到仓库中。然后我们可以在
README.md
中说明仓库的结构,给出获取数据文件的
联系信息。这样我们的仓库就比较简洁,且易于下载,还可以保持良好的代码结构。
创建一个符合逻辑的仓库结构,并添加
README.md ...
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