diff --git a/wbia/algo/graph/mixin_groundtruth.py b/wbia/algo/graph/mixin_groundtruth.py index 9db1a36c8c..3f1990d08f 100644 --- a/wbia/algo/graph/mixin_groundtruth.py +++ b/wbia/algo/graph/mixin_groundtruth.py @@ -52,8 +52,14 @@ def match_state_df(infr, index): aid_pairs = vt.ensure_shape(aid_pairs, (None, 2)) is_same = infr.is_same(aid_pairs) is_comp = infr.is_comparable(aid_pairs) - match_state_df = pd.DataFrame.from_items( - [(NEGTV, ~is_same & is_comp), (POSTV, is_same & is_comp), (INCMP, ~is_comp)] + match_state_df = pd.DataFrame.from_dict( + dict( + [ + (NEGTV, ~is_same & is_comp), + (POSTV, is_same & is_comp), + (INCMP, ~is_comp), + ] + ) ) match_state_df.index = index return match_state_df