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

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.

主站蜘蛛池模板: 榕江县| 文昌市| 庆城县| 北海市| 鹤山市| 鄢陵县| 固始县| 延寿县| 晋中市| 右玉县| 时尚| 资阳市| 青岛市| 兴化市| 德令哈市| 札达县| 铜川市| 江都市| 富平县| 侯马市| 宜宾县| 林口县| 堆龙德庆县| 万州区| 临西县| 上饶县| 南康市| 繁峙县| 清流县| 东乌珠穆沁旗| 洞头县| 高碑店市| 吴旗县| 甘肃省| 南宫市| 噶尔县| 万年县| 滕州市| 林口县| 南和县| 碌曲县|