Home >  > 国信Iquant

国信Iquant

一、存在问题

1.pandas/numpy的兼容问题

AttributeError: type object 'pandas._libs.sparse.SparseIndex' has no attribute '__reduce_cython__'

原因:
经过分析,报错根源是 iQuant 平台自带的 pandas/numpy 环境存在兼容性问题(pandas._libs.sparse 无法正确加载)。最稳妥的方案是完全移除对 pandas 和 numpy 的显式导入,仅使用 Python 标准库及平台 API 返回的 DataFrame 对象(这些对象本身是 pandas 类型,但平台内部已加载,不会重复触发导入错误)。

https://www3.guosen.com.cn/guosen/newxwfiles/20190902/1567416998056.pdf

暧昧帖

本文暂无标签