Orca Utilities

These are various utilities used internally within Orca.

Testing Helpers

Utilities used in testing of Orca.

orca.utils.testing.assert_frames_equal(actual, expected, use_close=False)

Compare DataFrame items by index and column and raise AssertionError if any item is not equal.

Ordering is unimportant, items are compared only by label. NaN and infinite values are supported.

Parameters
actualpandas.DataFrame
expectedpandas.DataFrame
use_closebool, optional

If True, use numpy.testing.assert_allclose instead of numpy.testing.assert_equal.

orca.utils.testing.assert_index_equal(left, right)

Similar to pdt.assert_index_equal but is not sensitive to key ordering.

Parameters
left: pandas.Index
right: pandas.Index