()
| 912 | |
| 913 | |
| 914 | def test_map_partitions(): |
| 915 | assert_eq(d.map_partitions(lambda df: df, meta=d), full) |
| 916 | assert_eq(d.map_partitions(lambda df: df), full) |
| 917 | result = d.map_partitions(lambda df: df.sum(axis=1)) |
| 918 | assert_eq(result, full.sum(axis=1)) |
| 919 | |
| 920 | assert_eq( |
| 921 | d.map_partitions(lambda df: 1), |
| 922 | pd.Series([1, 1, 1], dtype=np.int64), |
| 923 | check_divisions=False, |
| 924 | check_index=False, |
| 925 | ) |
| 926 | |
| 927 | |
| 928 | def test_map_partitions_type(): |
nothing calls this directly
no test coverage detected