We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be86001 commit f792b39Copy full SHA for f792b39
pandas/tests/frame/test_api.py
@@ -378,22 +378,3 @@ def test_inspect_getmembers(self):
378
# GH38740
379
df = DataFrame()
380
inspect.getmembers(df)
381
-
382
- def test_setitem_series_alignment_documentation(self):
383
- # Test that Series assignment aligns by index as documented.
384
- df = DataFrame({"A": [1, 2, 3]}, index=[0, 1, 2])
385
- s = Series([10, 20], index=[1, 3])
386
- df["B"] = s
387
- expected = DataFrame({"A": [1, 2, 3], "B": [np.nan, 10, np.nan]})
388
- tm.assert_frame_equal(df, expected)
389
390
- def test_setitem_series_partial_alignment(self):
391
- # Test Series assignment with partial index match. """
392
- df = DataFrame({"A": [1, 2, 3, 4]}, index=["a", "b", "c", "d"])
393
- s = Series([100, 200], index=["b", "d"])
394
395
- expected = DataFrame(
396
- {"A": [1, 2, 3, 4], "B": [np.nan, 100, np.nan, 200]},
397
- index=["a", "b", "c", "d"],
398
- )
399
0 commit comments