示例#1
0
 def test_distribution_series_constructor(self):
     if pd is None:
         raise SkipTest("Test requires pandas")
     dist = Distribution(pd.Series([0, 1, 2], name='Value'))
     self.assertEqual(dist.kdims, [Dimension('Value')])
     self.assertEqual(dist.vdims, [Dimension('Density')])
示例#2
0
 def test_distribution_series_constructor(self):
     dist = Distribution(pd.Series([0, 1, 2], name='Value'))
     self.assertEqual(dist.kdims, [Dimension('Value')])
     self.assertEqual(dist.vdims, [Dimension('Density')])