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

Method iget

pandas/core/internals/blocks.py:961–968  ·  view source on GitHub ↗
(self, i: int | tuple[int, int] | tuple[slice, int])

Source from the content-addressed store, hash-verified

959 return self.values.shape
960
961 def iget(self, i: int | tuple[int, int] | tuple[slice, int]) -> np.ndarray:
962 # In the case where we have a tuple[slice, int], the slice will always
963 # be slice(None)
964 # Note: only reached with self.ndim == 2
965 # Invalid index type "Union[int, Tuple[int, int], Tuple[slice, int]]"
966 # for "Union[ndarray[Any, Any], ExtensionArray]"; expected type
967 # "Union[int, integer[Any]]"
968 return self.values[i] # type: ignore[index]
969
970 def _slice(
971 self, slicer: slice | npt.NDArray[np.bool_] | npt.NDArray[np.intp]

Callers 10

_ixsMethod · 0.45
test_setMethod · 0.45
test_set_change_dtypeMethod · 0.45
test_astypeMethod · 0.45
test_convertMethod · 0.45
test_reindex_itemsMethod · 0.45
test_get_numeric_dataMethod · 0.45
test_get_bool_dataMethod · 0.45

Calls

no outgoing calls

Tested by 9

test_setMethod · 0.36
test_set_change_dtypeMethod · 0.36
test_astypeMethod · 0.36
test_convertMethod · 0.36
test_reindex_itemsMethod · 0.36
test_get_numeric_dataMethod · 0.36
test_get_bool_dataMethod · 0.36