Skip to content

Commit aa0dd56

Browse files
committed
Fix add_rows crash
1 parent 6074f31 commit aa0dd56

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/streamlit/elements/data_frame_proto.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,6 @@ def _marshall_any_array(pandas_array, proto_array):
296296
"""
297297
import numpy as np
298298

299-
if len(pandas_array) == 0:
300-
return
301-
302299
# Convert to np.array as necessary.
303300
if not hasattr(pandas_array, "dtype"):
304301
pandas_array = np.array(pandas_array)

0 commit comments

Comments
 (0)