Skip to content

CI: add jinja2 as a hard dependency for DataFrame.to_latex/to_html #43423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
fix tests by avoiding numpy ambiguous
  • Loading branch information
attack68 committed Sep 6, 2021
commit 013e44784b6daeb4395179ad92d9a4552fdfec20
4 changes: 2 additions & 2 deletions pandas/io/formats/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -2193,7 +2193,7 @@ def hide_index(
hrows = self.index.get_indexer_for(hide.index)
# error: Incompatible types in assignment (expression has type
# "ndarray", variable has type "Sequence[int]")
self.hidden_rows = hrows # type: ignore[assignment]
self.hidden_rows = list(hrows) # type: ignore[assignment]

if names:
self.hide_index_names = True
Expand Down Expand Up @@ -2332,7 +2332,7 @@ def hide_columns(
hcols = self.columns.get_indexer_for(hide.columns)
# error: Incompatible types in assignment (expression has type
# "ndarray", variable has type "Sequence[int]")
self.hidden_columns = hcols # type: ignore[assignment]
self.hidden_columns = list(hcols) # type: ignore[assignment]

if names:
self.hide_column_names = True
Expand Down