Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fixed error message
  • Loading branch information
KianShah authored Jun 21, 2022
commit 7240ecab70257a403e7c20cd0906723d3f888585
2 changes: 1 addition & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,7 @@ def from_dict(
if columns is not None:
raise ValueError(f"cannot use columns parameter with orient='{orient}'")
else: # pragma: no cover
raise ValueError("only recognize index or columns for orient")
raise ValueError("only recognize 'index', 'columns', or 'tight' for orient")

if orient != "tight":
return cls(data, index=index, columns=columns, dtype=dtype)
Expand Down