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

Method left_error_msg

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

Source from the content-addressed store, hash-verified

1978 right_unique = right_join_index.is_unique
1979
1980 def left_error_msg(x: Index) -> str:
1981 name = self.left_on if not self.left_index else lib.no_default
1982 msg = x[x.duplicated()][:5].to_frame(name=name).to_string(index=False)
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

Callers

nothing calls this directly

Calls 3

to_stringMethod · 0.45
to_frameMethod · 0.45
duplicatedMethod · 0.45

Tested by

no test coverage detected