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

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.

主站蜘蛛池模板: 武邑县| 平舆县| 中西区| 日喀则市| 新民市| 宁德市| 澄迈县| 张家口市| 康平县| 青田县| 英山县| 尖扎县| 乌拉特后旗| 望谟县| 靖边县| 阿克陶县| 海伦市| 慈溪市| 黄骅市| 虹口区| 芦溪县| 平果县| 武隆县| 禄丰县| 扶绥县| 禹州市| 太仓市| 波密县| 荆门市| 大洼县| 汉中市| 定陶县| 连江县| 内丘县| 盐边县| 金平| 安丘市| 当涂县| 离岛区| 建阳市| 丘北县|