Skip to content

Commit

Permalink
uppercase env var for MAX_ROWS (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
wseaton committed Sep 13, 2021
1 parent ffc1aef commit 62fd456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-polars/polars/eager/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1176,7 +1176,7 @@ def _repr_html_(self) -> str:
* POLARS_FMT_MAX_ROWS: set the number of rows
"""
max_cols = int(os.environ.get("POLARS_FMT_MAX_COLS", default=75))
max_rows = int(os.environ.get("POLARS_FMT_MAX_rows", 25))
max_rows = int(os.environ.get("POLARS_FMT_MAX_ROWS", default=25))
return "\n".join(NotebookFormatter(self, max_cols, max_rows).render())

def rename(self, mapping: Dict[str, str]) -> "DataFrame":
Expand Down

0 comments on commit 62fd456

Please sign in to comment.