Skip to content

Commit 75a1268

Browse files
committed
Jinja2 errors and error text
1 parent 385f5f0 commit 75a1268

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pandas/io/formats/excel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ def __init__(
566566
if cols is not None:
567567
# all missing, raise
568568
if not len(Index(cols).intersection(df.columns)):
569-
raise KeyError("passes columns are not ALL present dataframe")
569+
raise KeyError("Passed columns are not ALL present dataframe")
570570

571571
if len(Index(cols).intersection(df.columns)) != len(set(cols)):
572572
# Deprecated in GH#17295, enforced in 1.0.0

pandas/tests/io/formats/test_to_excel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import numpy as np
1111
import pytest
1212

13+
pytest.importorskip("jinja2")
14+
1315
from pandas.errors import CSSWarning
1416

1517
from pandas import (

0 commit comments

Comments
 (0)