def test_other(self): arrays = randn(2), randn(10, 4), randn(10, 8, 3) for array in arrays: nas = nans_like(array) self.assert_(np.isnan(nas).all())
def test_dataframe(self): x = DataFrame(randn(10, 3)) nas = nans_like(x) self.assert_(np.isnan(nas.values).all())
def test_panel(self): x = Panel(randn(5, 4, 3)) nas = nans_like(x) # panel has no all member for some reason self.assert_(np.isnan(nas.values).all())
def test_series(self): x = Series(randn(7)) nas = nans_like(x) self.assert_(np.isnan(nas).all())