MCPcopy
hub / github.com/pandas-dev/pandas / _create_data

Method _create_data

pandas/core/window/rolling.py:264–273  ·  view source on GitHub ↗

Split data into blocks & return conformed data.

(self, obj: NDFrameT, numeric_only: bool = False)

Source from the content-addressed store, hash-verified

262 return result
263
264 def _create_data(self, obj: NDFrameT, numeric_only: bool = False) -> NDFrameT:
265 """
266 Split data into blocks & return conformed data.
267 """
268 # filter out the on from the object
269 if self.on is not None and not isinstance(self.on, Index) and obj.ndim == 2:
270 obj = obj.reindex(columns=obj.columns.difference([self.on], sort=False))
271 if obj.ndim > 1 and numeric_only:
272 obj = self._make_numeric_only(obj)
273 return obj
274
275 def _gotitem(self, key, ndim, subset=None):
276 """

Callers 7

__iter__Method · 0.95
_apply_seriesMethod · 0.95
_apply_columnwiseMethod · 0.95
_apply_tablewiseMethod · 0.95
_apply_pairwiseMethod · 0.95
_numba_applyMethod · 0.95
_create_dataMethod · 0.45

Calls 3

_make_numeric_onlyMethod · 0.95
reindexMethod · 0.45
differenceMethod · 0.45

Tested by

no test coverage detected