MCPcopy
hub / github.com/quantopian/zipline / __repr__

Method __repr__

zipline/lib/labelarray.py:602–608  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

600 )
601
602 def __repr__(self):
603 repr_lines = repr(self.as_string_array()).splitlines()
604 repr_lines[0] = repr_lines[0].replace('array(', 'LabelArray(', 1)
605 repr_lines[-1] = repr_lines[-1].rsplit(',', 1)[0] + ')'
606 # The extra spaces here account for the difference in length between
607 # 'array(' and 'LabelArray('.
608 return '\n '.join(repr_lines)
609
610 def empty_like(self, shape):
611 """

Callers

nothing calls this directly

Calls 3

as_string_arrayMethod · 0.95
replaceMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected