You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resampling produces new hypothetical samples(resamples) from already existing observed data or from a model that generates data. These new samples are similar to the pre-existing samples.
1233
+
Resampling produces new hypothetical samples(resamples) from already existing observed data or from a model that generates data. These new samples are similar to the pre-existing samples.
1183
1234
1184
1235
In order to resample to work on indices that are non-datetimelike , the following procedure can be utilized.
1185
1236
1186
-
In the following examples, **df.index // 5** returns a binary array which is used to determine what get's selected for the groupby operation.
1237
+
In the following examples, **df.index // 5** returns a binary array which is used to determine what gets selected for the groupby operation.
1187
1238
1188
1239
.. note:: The below example shows how we can downsample by consolidation of samples into fewer samples. Here by using **df.index // 5**, we are aggregating the samples in bins. By applying **std()** function, we aggregate the information contained in many samples into a small subset of values which is their standard deviation thereby reducing the number of samples.
0 commit comments