Skip to Content
利用 Python 进行数据分析:原书第 3 版
book

利用 Python 进行数据分析:原书第 3 版

by Wes McKinney
November 2023
Intermediate to advanced
512 pages
11h 53m
Chinese
China Machine Press
Content preview from 利用 Python 进行数据分析:原书第 3 版
331
11
时间序列
时间序列数据是一种重要的结构化数据形式,应用于多个领域,包括金融学、经济学、
生态学、神经科学、物理学等。在多个时间点重复记录的值就形成了时间序列。很多时
间序列是固定频率的,也就是说,数据点是根据某种规则定期出现的,比如每
15
秒、
5
分钟或每月一次。时间序列也可以是不定期的,没有固定的时间单位或单位之间的
偏移量。如何标记和引用时间序列数据取决于具体的应用,主要有以下几种:
时间戳
特定的时刻。
固定的周期
2017
1
月整月或
2020
年全年。
时间区间
由起始时间戳和结束时间戳表示。周期可以看作时间区间的特例。
试验时间或运行时间
每个时间戳都是相对于特定起始时间的度量(例如,饼干放入烤箱后每秒烘烤的直
),
0
开始。
本章主要讲解前三种时间序列。许多技术都可用于处理试验时间序列,其索引可能是整
数或浮点数,表示距试验起始时刻已经过去的时间。最简单的时间序列是按时间戳索
引的。
pandas
也支持基于时间差的索引,它可以有效表示试验时间或运行时间。本
书不涉及时间差索引,请参考
pandas
的文档(
http://pandas.pydata.org/
)学
习更多内容。
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

Effective Python 第3版 ―Pythonプログラムを改良する125項目

Effective Python 第3版 ―Pythonプログラムを改良する125項目

Brett Slatkin, 鈴木 駿

Publisher Resources

ISBN: 9787111726722