程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python Chapter 11 time series

編輯:Python

The time series (time series) Data is an important form of structured data , It can be used in many fields , Including finance 、 economics 、 Ecology 、 neuroscience 、 Physics, etc . Anything observed or measured at multiple time points can form a time series . A lot of time series are fixed frequency , in other words , Data points appear regularly according to some rule ( Like every 15 second 、 Every time 5 minute 、 Once a month ). Time series can also be irregular , There are no fixed time units or offsets between units . The significance of time series data depends on the specific application scenario , There are mainly the following :

  • Time stamp (timestamp), Specific moments .
  • Fixed period (period), Such as 2007 year 1 Month or 2010 In the year .
  • The time interval (interval), Represented by start and end timestamps . period (period) It can be seen as a gap (interval) The special case of .
  • Experiment or process time , Each point in time is a measure relative to a specific start time . for example , From the time you put it in the oven , The diameter of the biscuit per second .

This chapter is mainly about 3 Time series . Many techniques can be used to deal with experimental time series , Its index may be an integer or floating point number ( Indicates the time elapsed since the beginning of the experiment ). The simplest and most common time series are indexed with time stamps .

Tips :pandas Also support based on timedeltas The index of , It can effectively represent the experiment or elapsed time . This book does not cover timedelta Index , But you can learn pandas Documents (http://pandas.pydata.org/).

pandas It provides many built-in time series processing tools and data algorithms . therefore , You can efficiently handle very large time series , Slice easily / cutting 、 polymerization 、 On a regular basis / Irregular time series


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved