Andrew Chung
Andrew Chung
missing cumcount() function in embedded column functions, especially needed for using spread() function to handle the DataFrame with duplicate identifier.
使用的版本: r2.0.17 - 被退回到编辑状态重新上传新文件 ``` boolean_field_display: {} default_value: "" description: "" field_attribute: 1 field_choice: {} field_key: "attachment" field_name: "工时Excel" field_template: "" field_type_id: 80 field_value: "[{\"file_name\":\"Timecard.xlsx\"}]" label: {} order_id: 3 placeholder:...
## 【【自定义字段】默认值设置后,web端创建新工单时均不生效
## 标题模板中引入可供选择【工单字段】,返回数字key而非value    当然,如果让key值就是value本身暂时可用。 另外,自定义字段中【默认值】配置都不会生效
```py from experta import * class Goal(Fact): pass class Hero(Fact): name = Field(str) status = Field(str, default="unoccupied") class KE(KnowledgeEngine): @DefFacts() def goal_and_heroes(self): yield Goal('save-the-day') yield Hero(name="Death Defying Man") yield Hero(name="Stupendous...