MCPcopy
hub / github.com/pandas-dev/pandas / right_error_msg

Method right_error_msg

pandas/core/reshape/merge.py:1985–1988  ·  view source on GitHub ↗
(x: Index)

Source from the content-addressed store, hash-verified

1983 return f"\nDuplicates in left:\n {msg} ..."
1984
1985 def right_error_msg(x: Index) -> str:
1986 name = self.right_on if not self.right_index else lib.no_default
1987 msg = x[x.duplicated()][:5].to_frame(name=name).to_string(index=False)
1988 return f"\nDuplicates in right:\n {msg} ..."
1989
1990 # Check data integrity
1991 if validate in ["one_to_one", "1:1"]:

Callers

nothing calls this directly

Calls 3

to_stringMethod · 0.45
to_frameMethod · 0.45
duplicatedMethod · 0.45

Tested by

no test coverage detected