We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1052a49 commit 126b85dCopy full SHA for 126b85d
tensorflow_data_validation/utils/display_util.py
@@ -274,6 +274,9 @@ def _get_combined_statistics(
274
'lhs_statistics is of type %s, should be '
275
'a DatasetFeatureStatisticsList proto.' % type(lhs_statistics).__name__)
276
277
+ if not lhs_statistics.datasets:
278
+ raise ValueError('lhs_statistics proto contains no dataset.')
279
+
280
if len(lhs_statistics.datasets) != 1:
281
raise ValueError('lhs_statistics proto contains multiple datasets. Only '
282
'one dataset is currently supported.')
0 commit comments