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数据处理
数据获取与存储
119
指南”(
https://github.com/googledrive/python-quickstart
)可以帮你完成初步的设置。
Google
Drive
还有一些
Python API
包装器,比如
PyDrive
https://github.com/googledrive/PyDrive
),
可以让你在不太会用
Python
的情况下使用
Google Drive
。要管理
Google Drive
上的电子表
格,我们强烈推荐
GSpread
https://github.com/burnash/gspread
)。
如果你有自己的云服务器,可能需要研究连接云服务器的最佳方法。
Python
有内置的
URL
请求方法、
FTP
(文件传输协议)方法和
SSH/SCP
Secure Shell/Secure Copy
)方法,都包
含在
Python
标准库(
stdlib
)中。在第
14
章中我们还会讲到管理云服务的一些有用库。
6.8.2
 本地存储和
Python
数据存储最简单也是最直接的方法就是本地存储。用一行
Python
代码就可以打开文件系
统中的文档(
open
命令,
https://docs.python.org/2/library/functions.html#open
)。在处理数据
时,你还可以用内置的
file.write
方法修改并保存为新文件。
6.9
 其他数据存储方式
数据存储还有许多有趣的新方式,和前面讲过的都不一样。根据你的使用案例,存储数据
可能有更好的方式。下面是两种有趣的存储方式。
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