@@ -516,8 +516,8 @@ def test_get_anomalies_dataframe(self):
516
516
)
517
517
actual_output = display_util .get_anomalies_dataframe (anomalies )
518
518
# 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 ))
521
521
522
522
def test_get_anomalies_dataframe_with_no_toplevel_description (self ):
523
523
anomalies = text_format .Parse (
@@ -550,8 +550,8 @@ def test_get_anomalies_dataframe_with_no_toplevel_description(self):
550
550
)
551
551
actual_output = display_util .get_anomalies_dataframe (anomalies )
552
552
# 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 ))
555
555
556
556
# Confirm Anomaly short/long description is not empty
557
557
self .assertNotEmpty (actual_output ['Anomaly short description' ][0 ])
@@ -592,7 +592,7 @@ def test_get_drift_skew_dataframe(self):
592
592
def test_get_anomalies_dataframe_no_anomalies (self ):
593
593
anomalies = anomalies_pb2 .Anomalies ()
594
594
actual_output = display_util .get_anomalies_dataframe (anomalies )
595
- self .assertEqual (actual_output .shape , (0 , 2 ))
595
+ self .assertEqual (actual_output .shape , (0 , 3 ))
596
596
597
597
def test_get_natural_language_statistics_dataframes (self ):
598
598
statistics = text_format .Parse (
0 commit comments