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

Method __init__

pandas/plotting/_matplotlib/core.py:1263–1273  ·  view source on GitHub ↗
(self, data, x, y, **kwargs)

Source from the content-addressed store, hash-verified

1261 _layout_type = "single"
1262
1263 def __init__(self, data, x, y, **kwargs) -> None:
1264 MPLPlot.__init__(self, data, **kwargs)
1265 if x is None or y is None:
1266 raise ValueError(self._kind + " requires an x and y column")
1267 if is_integer(x) and not holds_integer(self.data.columns):
1268 x = self.data.columns[x]
1269 if is_integer(y) and not holds_integer(self.data.columns):
1270 y = self.data.columns[y]
1271
1272 self.x = x
1273 self.y = y
1274
1275 @final
1276 def _get_nseries(self, data: Series | DataFrame) -> int:

Callers

nothing calls this directly

Calls 2

holds_integerFunction · 0.70
__init__Method · 0.45

Tested by

no test coverage detected