官术网_书友最值得收藏!

Time series data

Time series data is a first-class entity within pandas. Time adds an important, extra dimension to samples of variables within pandas. Often variables are independent of the time they were sampled at; that is, the time at which they are sampled is not important. But in many cases they are. A time series forms a sample of a discrete variable at specific time intervals, where the observations have a natural temporal ordering.

A stochastic model for a time series will generally reflect the fact that observations close together in time will be more closely related than observations that are further apart. Time series models will often make use of the natural one-way ordering of time so that values for a given period will be expressed as deriving in some way from past values rather than from future values.

A common scenario with pandas is financial data where a variable represents the value of a stock as it changes at regular intervals throughout the day. We often want to determine changes in the rate of change of the price at specific intervals. We may also want to correlate the price of multiple stocks across specific intervals of time.

This is such an important and robust capability in pandas that we will spend an entire chapter examining the concept.

主站蜘蛛池模板: 临湘市| 龙口市| 冕宁县| 桂平市| 繁昌县| 田林县| 临武县| 岑溪市| 新河县| 黎川县| 丘北县| 芒康县| 黔西| 苏尼特右旗| 抚州市| 勃利县| 正定县| 四子王旗| 博爱县| 宜章县| 西乡县| 宜州市| 沛县| 古丈县| 乌鲁木齐县| 柏乡县| 彰化市| 荔波县| 兴化市| 永康市| 汝南县| 阿合奇县| 衡水市| 吐鲁番市| 龙口市| 遵义市| 区。| 馆陶县| 阜康市| 手游| 漾濞|