We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
max_cols
1 parent edb0e38 commit 72faba9Copy full SHA for 72faba9
pandas/core/col.py
@@ -261,8 +261,9 @@ def col(col_name: Hashable) -> Expression:
261
def func(df: DataFrame) -> Series:
262
if col_name not in df.columns:
263
columns_list = df.columns.tolist()
264
- if len(columns_list) > 10:
265
- columns_hint = columns_list[:10] + ["..."]
+ max_cols = 10
+ if len(columns_list) > max_cols:
266
+ columns_hint = columns_list[:max_cols] + ["..."]
267
else:
268
columns_hint = columns_list
269
msg = (
0 commit comments