Skip to content

Commit 72faba9

Browse files
committed
make max_cols variable
1 parent edb0e38 commit 72faba9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/col.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,9 @@ def col(col_name: Hashable) -> Expression:
261261
def func(df: DataFrame) -> Series:
262262
if col_name not in df.columns:
263263
columns_list = df.columns.tolist()
264-
if len(columns_list) > 10:
265-
columns_hint = columns_list[:10] + ["..."]
264+
max_cols = 10
265+
if len(columns_list) > max_cols:
266+
columns_hint = columns_list[:max_cols] + ["..."]
266267
else:
267268
columns_hint = columns_list
268269
msg = (

0 commit comments

Comments
 (0)