Skip to content

Commit 380b770

Browse files
committed
use df shape
1 parent 16666af commit 380b770

File tree

1 file changed

+1
-1
lines changed
  • src/nested_pandas/nestedframe

1 file changed

+1
-1
lines changed

src/nested_pandas/nestedframe/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def map_true_index(index):
160160
# Recover some truncation formatting, limited to head truncation
161161
if pd.get_option("display.max_rows") is None:
162162
return repr.to_html(max_rows=0)
163-
elif repr.data.shape[0] > pd.get_option("display.max_rows"):
163+
elif df_shape[0] > pd.get_option("display.max_rows"):
164164
html_repr = repr.to_html(max_rows=pd.get_option("display.min_rows"))
165165
else:
166166
# when under the max_rows threshold, display all rows (behavior of 0 here)

0 commit comments

Comments
 (0)