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

Function test_join_index_series

pandas/tests/frame/methods/test_join.py:322–331  ·  view source on GitHub ↗
(float_frame)

Source from the content-addressed store, hash-verified

320
321
322def test_join_index_series(float_frame):
323 df = float_frame.copy()
324 ser = df.pop(float_frame.columns[-1])
325 joined = df.join(ser)
326
327 tm.assert_frame_equal(joined, float_frame)
328
329 ser.name = None
330 with pytest.raises(ValueError, match="must have a name"):
331 df.join(ser)
332
333
334def test_join_overlap(float_frame):

Callers

nothing calls this directly

Calls 4

copyMethod · 0.45
popMethod · 0.45
joinMethod · 0.45
raisesMethod · 0.45

Tested by

no test coverage detected