def test_round(self):
param_str = "round(2.45, 1) -> float"
test_param = TemplateParameter(parameter_str=param_str, type_converter=self.type_converter)
result = test_param.render(df=test_df)
self.assertEquals(result, np.round_(2.45, 1))
评论列表
文章目录