()
| 405 | |
| 406 | |
| 407 | def test_divmod(): |
| 408 | df1 = pd.Series(np.random.rand(10)) |
| 409 | df2 = pd.Series(np.random.rand(10)) |
| 410 | |
| 411 | ddf1 = from_pandas(df1, npartitions=3) |
| 412 | ddf2 = from_pandas(df2, npartitions=3) |
| 413 | |
| 414 | result = divmod(ddf1, 2.0) |
| 415 | expected = divmod(df1, 2.0) |
| 416 | assert_eq(result[0], expected[0]) |
| 417 | assert_eq(result[1], expected[1]) |
| 418 | |
| 419 | result = divmod(ddf1, ddf2) |
| 420 | expected = divmod(df1, df2) |
| 421 | assert_eq(result[0], expected[0]) |
| 422 | assert_eq(result[1], expected[1]) |
| 423 | |
| 424 | |
| 425 | def test_value_counts_with_normalize(): |
nothing calls this directly
no test coverage detected