@@ -516,8 +516,8 @@ def test_get_anomalies_dataframe(self):
516516 )
517517 actual_output = display_util .get_anomalies_dataframe (anomalies )
518518 # The resulting DataFrame has a row for each feature and a column for each
519- # of the short description and long description.
520- self .assertEqual (actual_output .shape , (2 , 2 ))
519+ # of the short description, long description and anomaly types .
520+ self .assertEqual (actual_output .shape , (2 , 3 ))
521521
522522 def test_get_anomalies_dataframe_with_no_toplevel_description (self ):
523523 anomalies = text_format .Parse (
@@ -550,8 +550,8 @@ def test_get_anomalies_dataframe_with_no_toplevel_description(self):
550550 )
551551 actual_output = display_util .get_anomalies_dataframe (anomalies )
552552 # The resulting DataFrame has a row for each feature and a column for each
553- # of the short description and long description.
554- self .assertEqual (actual_output .shape , (2 , 2 ))
553+ # of the short description, long description and anomaly types .
554+ self .assertEqual (actual_output .shape , (2 , 3 ))
555555
556556 # Confirm Anomaly short/long description is not empty
557557 self .assertNotEmpty (actual_output ['Anomaly short description' ][0 ])
@@ -592,7 +592,7 @@ def test_get_drift_skew_dataframe(self):
592592 def test_get_anomalies_dataframe_no_anomalies (self ):
593593 anomalies = anomalies_pb2 .Anomalies ()
594594 actual_output = display_util .get_anomalies_dataframe (anomalies )
595- self .assertEqual (actual_output .shape , (0 , 2 ))
595+ self .assertEqual (actual_output .shape , (0 , 3 ))
596596
597597 def test_get_natural_language_statistics_dataframes (self ):
598598 statistics = text_format .Parse (
0 commit comments