Module Expr Str Import alias identifier Import alias identifier Import alias identifier FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr Assert BoolOpAnd Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assert CompareIn NameLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assert CompareIn NameLoad AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad TryExcept body Expr Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad BinOpAdd AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assert Call NameLoad NameLoad AttributeLoad NameLoad attr Assert Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpOr CompareGt Call NameLoad NameLoad Num CompareGt Call NameLoad NameLoad Num body Raise Call NameLoad Call AttributeLoad Str attr NameLoad NameLoad decorator_list
N/A N/A 
Utilities used in testing of UrbanSim.

 N/A numpy np N/A numpy.testing npt N/A pandas pd assert_frames_equal N/A N/A actual expected use_close N/A False N/A N/A 
    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
    ----------
    actual : pandas.DataFrame
    expected : pandas.DataFrame
    use_close : bool, optional
        If True, use numpy.testing.assert_allclose instead of
        numpy.testing.assert_equal.

     N/A use_close N/A N/A comp N/A npt assert_allclose N/A N/A comp N/A npt assert_equal N/A N/A N/A isinstance actual N/A pd DataFrame N/A isinstance expected N/A pd DataFrame Inputs must both be pandas DataFrames. N/A N/A i exp_row N/A N/A expected iterrows N/A N/A N/A i N/A actual index N/A N/A Expected row {!r} not found. format i N/A act_row N/A N/A actual loc N/A i N/A N/A j exp_item N/A N/A exp_row iteritems N/A N/A N/A j N/A act_row index N/A N/A Expected column {!r} not found. format j N/A act_item N/A act_row N/A j N/A N/A N/A N/A comp act_item exp_item N/A N/A N/A AssertionError N/A e N/A N/A N/A AssertionError N/A N/A e message N/A N/A 

Column: {!r}
Row: {!r} format j i N/A assert_index_equal N/A N/A left right N/A N/A N/A 
    Similar to pdt.assert_index_equal but is not sensitive to key ordering.

    Parameters
    ----------
    left: pandas.Index
    right: pandas.Index
     N/A N/A isinstance left N/A pd Index N/A N/A isinstance right N/A pd Index N/A left_diff N/A N/A left diff right N/A right_diff N/A N/A right diff left N/A N/A N/A N/A len left_diff 0 N/A N/A len right_diff 0 N/A N/A N/A AssertionError N/A N/A keys not in left [{0}], keys not in right [{1}] format left_diff right_diff N/A