Esempio n. 1
0
def test_concat_with_pipe_by_name():
    obs = utils.concat_with_pipe(TEST_CONCAT_SERIES, ['f', 'z'])
    assert obs == 'foo|baz'
Esempio n. 2
0
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'
Esempio n. 3
0
def test_concat_with_pipe_by_name():
    obs = utils.concat_with_pipe(TEST_CONCAT_SERIES, ["f", "z"])
    assert obs == "foo|baz"
Esempio n. 4
0
def test_concat_with_pipe_all():
    obs = utils.concat_with_pipe(TEST_CONCAT_SERIES)
    assert obs == 'foo|bar|baz'
Esempio n. 5
0
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"