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

Method check_roundtrip

tests/test_labelarray.py:410–417  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

408
409 @staticmethod
410 def check_roundtrip(arr):
411 assert_equal(
412 arr.as_string_array(),
413 LabelArray(
414 arr.as_string_array(),
415 arr.missing_value,
416 ).as_string_array(),
417 )
418
419 @staticmethod
420 def create_categories(width, plus_one):

Calls 3

assert_equalFunction · 0.90
LabelArrayClass · 0.90
as_string_arrayMethod · 0.80

Tested by

no test coverage detected