wukan1986 / alpha_examples

alpha投研示例
MIT License
56 stars 17 forks source link

UDF failed: name 'cs_winsorize_quantile' is not defined #1

Open FlashWB opened 5 months ago

FlashWB commented 5 months ago
df = df.group_by(by=[_DATE_]).map_groups(func_2_cs__date)
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Users\123\AppData\Roaming\Python\Python311\site-packages\polars\dataframe\group_by.py", line 322, in map_groups self.df._df.group_by_map_groups( pyo3_runtime.PanicException: UDF failed: name 'cs_winsorize_quantile' is not defined

请问一下,为什么运行prepare_data.py报这个错

wukan1986 commented 4 months ago

codegen/1_label.py运行后会自动更新codes/labels.py