Esempio n. 1
0
 def test_orients_on_subset_returns_full_data(self):
     a = Projection(DataFrame(randn(10, 2)))
     b = Projection(DataFrame(randn(10, 2)))
     oriented = a.orient_to(b, index=range(4))
     self.assertEqual(10, len(oriented.coords.index))
Esempio n. 2
0
 def test_returns_projection(self):
     a = Projection(DataFrame(randn(10, 2)))
     b = Projection(DataFrame(randn(10, 2)))
     self.assertIsInstance(a.orient_to(b), Projection)