MCPcopy Index your code
hub / github.com/numpy/numpy / __str__

Method __str__

numpy/ma/core.py:6604–6613  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6602 self._mask[indx] = getattr(value, "_mask", False)
6603
6604 def __str__(self):
6605 m = self._mask
6606 if m is nomask:
6607 return str(self._data)
6608
6609 rdtype = _replace_dtype_fields(self._data.dtype, "O")
6610 data_arr = super()._data
6611 res = data_arr.astype(rdtype)
6612 _recursive_printoption(res, self._mask, masked_print_option)
6613 return str(res)
6614
6615 __repr__ = __str__
6616

Callers 1

random.pyFile · 0.45

Calls 3

_replace_dtype_fieldsFunction · 0.85
_recursive_printoptionFunction · 0.85
astypeMethod · 0.80

Tested by

no test coverage detected