示例#1
0
 def test_str_to_date_str(self):
     x = pd.Series(["1/1/2014", "1/2/2014", "1/3/2014"])
     expected = [parse(e) for e in x]
     self.assertEqual(expected, list(plot_lib.str_to_date(x)))
示例#2
0
 def test_str_to_date_str(self):
     x = pd.Series(['1/1/2014', '1/2/2014', '1/3/2014'])
     expected = [parse(e) for e in x]
     self.assertEqual(expected, list(plot_lib.str_to_date(x)))
示例#3
0
 def test_str_to_date_float(self):
     x = pd.Series([1.0, 2.0, 3.0])
     self.assertEqual(list(x), list(plot_lib.str_to_date(x)))
示例#4
0
 def test_str_to_date_float(self):
     x = pd.Series([1., 2., 3.])
     self.assertEqual(list(x), list(plot_lib.str_to_date(x)))