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

Method _constructor

pandas/_testing/__init__.py:332–338  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

330
331 @property
332 def _constructor(self):
333 # For testing, those properties return a generic callable, and not
334 # the actual class. In this case that is equivalent, but it is to
335 # ensure we don't rely on the property returning a class
336 # See https://github.com/pandas-dev/pandas/pull/46018 and
337 # https://github.com/pandas-dev/pandas/issues/32638 and linked issues
338 return lambda *args, **kwargs: SubclassedSeries(*args, **kwargs)
339
340 @property
341 def _constructor_expanddim(self):

Callers

nothing calls this directly

Calls 1

SubclassedSeriesClass · 0.70

Tested by

no test coverage detected