Skip to content

Commit

Permalink
Fixed mergeordered ValueError Message
Browse files Browse the repository at this point in the history
  • Loading branch information
ziad-kermadi committed Nov 13, 2023
1 parent dd54596 commit c9feabc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pandas/core/reshape/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1867,10 +1867,7 @@ def get_result(self, copy: bool | None = True) -> DataFrame:
left_join_indexer = left_indexer
right_join_indexer = right_indexer
else:
raise ValueError(
"fill_method must be 'ffill' or None"
f"Got '{self.fill_method}' instead."
)
raise ValueError("fill_method must be 'ffill' or None")

result = self._reindex_and_concat(
join_index, left_join_indexer, right_join_indexer, copy=copy
Expand Down

0 comments on commit c9feabc

Please sign in to comment.