When reading annotations from tiledb, check if the values are byte literals and if so, decode them. Also pin s3f3 to 0.4.2. (#1788)

This commit is contained in:
maniarathi
2020-08-22 09:42:11 -07:00
committed by GitHub
parent fae9ac9382
commit a5c9ffa880
3 changed files with 11 additions and 10 deletions
@@ -74,6 +74,10 @@ class AnnotationsHostedTileDB(Annotations):
indexes = list()
for col_name, col_val in data.items():
# If the column values are byte literals, decode them
if isinstance(col_val[0], bytes):
col_val = [value.decode('utf-8') for value in col_val]
if repr_meta and col_name in repr_meta:
new_col = pd.Series(col_val, dtype=repr_meta[col_name])
data[col_name] = new_col