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

Method as_int_array

zipline/lib/labelarray.py:308–317  ·  view source on GitHub ↗

Convert self into a regular ndarray of ints. This is an O(1) operation. It does not copy the underlying data.

(self)

Source from the content-addressed store, hash-verified

306 self._missing_value = getattr(obj, 'missing_value', None)
307
308 def as_int_array(self):
309 """
310 Convert self into a regular ndarray of ints.
311
312 This is an O(1) operation. It does not copy the underlying data.
313 """
314 return self.view(
315 type=ndarray,
316 dtype=unsigned_int_dtype_with_size_in_bytes(self.itemsize),
317 )
318
319 def as_string_array(self):
320 """

Callers 13

as_string_arrayMethod · 0.95
as_categoricalMethod · 0.95
__setitem__Method · 0.95
set_scalarMethod · 0.95
is_missingMethod · 0.95
not_missingMethod · 0.95
methodMethod · 0.95
map_predicateMethod · 0.95
mapMethod · 0.95
test_infer_categoriesMethod · 0.95
test_string_not_equalMethod · 0.95
assert_labelarray_equalFunction · 0.80

Calls 2

viewMethod · 0.95

Tested by 2

test_infer_categoriesMethod · 0.76
test_string_not_equalMethod · 0.76