Skip to content

Typo: 'whenlines' -> 'when lines' #55233

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

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pandas/io/json/_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def to_json(

if mode == "a" and (not lines or orient != "records"):
msg = (
"mode='a' (append) is only supported when"
"mode='a' (append) is only supported when "
"lines is True and orient is 'records'"
)
raise ValueError(msg)
Expand Down
4 changes: 2 additions & 2 deletions pandas/tests/io/json/test_readlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def test_to_json_append_orient(orient_):
# Test ValueError when orient is not 'records'
df = DataFrame({"col1": [1, 2], "col2": ["a", "b"]})
msg = (
r"mode='a' \(append\) is only supported when"
r"mode='a' \(append\) is only supported when "
"lines is True and orient is 'records'"
)
with pytest.raises(ValueError, match=msg):
Expand All @@ -411,7 +411,7 @@ def test_to_json_append_lines():
# Test ValueError when lines is not True
df = DataFrame({"col1": [1, 2], "col2": ["a", "b"]})
msg = (
r"mode='a' \(append\) is only supported when"
r"mode='a' \(append\) is only supported when "
"lines is True and orient is 'records'"
)
with pytest.raises(ValueError, match=msg):
Expand Down