Split data into blocks & return conformed data.
(self, obj: NDFrameT, numeric_only: bool = False)
| 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 | """ |
no test coverage detected