()
| 4891 | |
| 4892 | |
| 4893 | def test_join_series(): |
| 4894 | df = pd.DataFrame({"x": [1, 2, 3, 4, 5, 6, 7, 8]}) |
| 4895 | ddf = dd.from_pandas(df, npartitions=1) |
| 4896 | if PANDAS_GE_310: |
| 4897 | expected = df.join(df["x"], suffixes=("_", "")) |
| 4898 | else: |
| 4899 | expected = df.join(df["x"], lsuffix="_") |
| 4900 | expected_df = dd.from_pandas(expected, npartitions=1) |
| 4901 | actual_df = ddf.join(ddf["x"], lsuffix="_") |
| 4902 | assert_eq(actual_df, expected_df) |
| 4903 | |
| 4904 | |
| 4905 | def test_assign_na_float_columns(): |