def test_concat_with_pipe_by_name(): obs = utils.concat_with_pipe(TEST_CONCAT_SERIES, ['f', 'z']) assert obs == 'foo|baz'
def test_concat_with_pipe_exclude_nan(): s = TEST_CONCAT_SERIES.copy() s['b'] = np.nan obs = utils.concat_with_pipe(s) assert obs == 'foo|baz'
def test_concat_with_pipe_by_name(): obs = utils.concat_with_pipe(TEST_CONCAT_SERIES, ["f", "z"]) assert obs == "foo|baz"
def test_concat_with_pipe_all(): obs = utils.concat_with_pipe(TEST_CONCAT_SERIES) assert obs == 'foo|bar|baz'
def test_concat_with_pipe_exclude_none(): s = TEST_CONCAT_SERIES.copy() s["b"] = None obs = utils.concat_with_pipe(s) assert obs == "foo|baz"