Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jialeicui committed Oct 27, 2023
1 parent 34b7a8d commit 2e60c3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/starwhale/core/dataset/tabular.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ def _transform(data: t.Any) -> t.Any:
return Binary(fp=data, auto_convert_to_bytes=True)
elif isinstance(data, dict):
return {k: _transform(v) for k, v in data.items()}
elif isinstance(data, (list, tuple)):
return type(data)([_transform(v) for v in data])
else:
return data

Expand Down

0 comments on commit 2e60c3d

Please sign in to comment.