@@ -930,9 +930,10 @@ def test_create_empty_metrics_dataframe(
930930
931931 # With previews or timestamps, MultiIndex columns are returned
932932 if include_preview or timestamp_column_name :
933- expected_df .columns = pd .MultiIndex .from_tuples ([], names = [None , None ])
933+ expected_df .columns = pd .MultiIndex .from_product ([[], ["value" ]], names = [None , None ])
934+ # the comparator seems not to delve into the exact column names on the 2nd level when the 1st level is empty..
934935
935- pd .testing .assert_frame_equal (df , expected_df , check_column_type = False )
936+ pd .testing .assert_frame_equal (df , expected_df )
936937
937938
938939@pytest .mark .parametrize ("timestamp_column_name" , [None , "absolute" ])
@@ -956,9 +957,9 @@ def test_create_empty_series_dataframe(timestamp_column_name: str):
956957 )
957958
958959 if timestamp_column_name :
959- expected_df .columns = pd .MultiIndex .from_tuples ([ ], names = [None , None ])
960+ expected_df .columns = pd .MultiIndex .from_product ([[], [ "value" ] ], names = [None , None ])
960961
961- pd .testing .assert_frame_equal (df , expected_df , check_index_type = False , check_column_type = False )
962+ pd .testing .assert_frame_equal (df , expected_df )
962963
963964
964965@pytest .mark .parametrize (
0 commit comments