Skip to content

Commit

Permalink
handled numpy array shape correctly, closes #160
Browse files Browse the repository at this point in the history
  • Loading branch information
fzumstein committed Oct 20, 2024
1 parent d2ca8fe commit 680bc9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/object_handles.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_shape(obj):
if pd and isinstance(obj, pd.DataFrame):
return f"{obj.shape[0]} x {obj.shape[1]}"
if np and isinstance(obj, np.ndarray):
return f"{obj.shape[0]} x {obj.shape[1]}"
return f"{obj.shape}"
elif isinstance(obj, (list, tuple)):
if obj and isinstance(obj[0], (list, tuple)):
nested_length = len(obj[0])
Expand Down

0 comments on commit 680bc9a

Please sign in to comment.