def test_concat(a): c = a.copy() d = NumpyDataFrame.concat([a, c]) assert d.shape == (20, )
def test_concat_raises(a): c = a.copy() c.col["C"] = np.arange(100, 110) with pytest.raises(NumpyDataFrameException): NumpyDataFrame.concat([a, c])
def test_concat_fills_missing(a): c = a.copy() c.col["C"] = np.arange(100, 110) d = NumpyDataFrame.concat([a, c], fill_value=np.inf) assert np.all(d.data["C"] == np.array([np.inf] * 10 + list(range(100, 110))))