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

Method where

pandas/core/internals/managers.py:469–481  ·  view source on GitHub ↗
(self, other, cond, align: bool)

Source from the content-addressed store, hash-verified

467
468 @final
469 def where(self, other, cond, align: bool) -> Self:
470 if align:
471 align_keys = ["other", "cond"]
472 else:
473 align_keys = ["cond"]
474 other = extract_array(other, extract_numpy=True)
475
476 return self.apply(
477 "where",
478 align_keys=align_keys,
479 other=other,
480 cond=cond,
481 )
482
483 @final
484 def putmask(self, mask, new, align: bool = True) -> Self:

Callers

nothing calls this directly

Calls 2

applyMethod · 0.95
extract_arrayFunction · 0.90

Tested by

no test coverage detected