Ejemplo n.º 1
0
 def test_constructor_subclass_dict(self):
     data = tm.TestSubDict((x, 10.0 * x) for x in range(10))
     series = self.series_klass(data)
     expected = self.series_klass(dict(compat.iteritems(data)))
     self._assert_series_equal(series, expected)
Ejemplo n.º 2
0
 def test_constructor_subclass_dict(self):
     data = tm.TestSubDict((x, 10.0 * x) for x in range(10))
     series = Series(data)
     refseries = Series(dict(compat.iteritems(data)))
     assert_series_equal(refseries, series)
Ejemplo n.º 3
0
 def test_constructor_subclass_dict(self):
     data = tm.TestSubDict((x, 10.0 * x) for x in range(10))
     series = Series(data)
     expected = Series(dict(data.items()))
     tm.assert_series_equal(series, expected)