MCPcopy Create free account
hub / github.com/numpy/numpy / __repr__

Method __repr__

numpy/ma/mrecords.py:349–360  ·  view source on GitHub ↗

Calculates the repr representation.

(self)

Source from the content-addressed store, hash-verified

347 return f"({', '.join(mstr)})"
348
349 def __repr__(self):
350 """
351 Calculates the repr representation.
352
353 """
354 _names = self.dtype.names
355 fmt = "%%%is : %%s" % (max([len(n) for n in _names]) + 4,)
356 reprstr = [fmt % (f, getattr(self, f)) for f in self.dtype.names]
357 reprstr.insert(0, 'masked_records(')
358 reprstr.extend([fmt % (' fill_value', self.fill_value),
359 ' )'])
360 return str("\n".join(reprstr))
361
362 def view(self, dtype=None, type=None):
363 """

Callers

nothing calls this directly

Calls 2

maxFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected