From e40ec4cc45d4074ae7ec6952ff05507c0e05d16d Mon Sep 17 00:00:00 2001 From: James Wexler Date: Tue, 14 May 2019 10:20:59 -0400 Subject: [PATCH] fix --- .../python/base_generic_feature_statistics_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/facets_overview/python/base_generic_feature_statistics_generator.py b/facets_overview/python/base_generic_feature_statistics_generator.py index 3b7bc37..32eb9d3 100644 --- a/facets_overview/python/base_generic_feature_statistics_generator.py +++ b/facets_overview/python/base_generic_feature_statistics_generator.py @@ -272,7 +272,7 @@ def GetDatasetsProto(self, datasets, features=None, for val_index, val in enumerate(sorted_vals): try: if (sys.version_info.major < 3 or - isinstance(data, (bytes, bytearray))): + isinstance(val[1], (bytes, bytearray))): printable_val = val[1].decode('UTF-8', 'strict') else: printable_val = val[1]