numpy-exts:适用于熊猫的Python,Cython,Rust扩展矢量化apply()

时间:2021-03-05 04:46:36
【文件属性】:
文件名称:numpy-exts:适用于熊猫的Python,Cython,Rust扩展矢量化apply()
文件大小:6KB
文件格式:ZIP
更新时间:2021-03-05 04:46:36
Rust 适用于熊猫的Python,Cython,Rust扩展矢量化apply() 在熊猫中,有时应用有状态向量化函数很有用。 这样的例子是一个交易模拟器,它基于熊猫DF选择进/出多头/空头头寸。 在这个项目中,我比较了纯Python,Cython,Rust-numpy(pyo3)的实现。 生成状态(主要): 建立 mkvirtualenv numpy-exts pip install -r requirements.txt python ./setup.py install # for release build, or python ./setup.py develop for debug (~7x slower than release!) # NOTE, following doesn't seem to work for required extensions: pip inst
【文件预览】:
numpy-exts-main
----setup.py(1KB)
----.gitignore(74B)
----npexts()
--------py_trade_fsm.py(2KB)
--------c_trade_fsm.pyx(2KB)
--------__init__.py(0B)
--------lib.rs(1KB)
----requirements.txt(82B)
----pyproject.toml(69B)
----.travis.yml(306B)
----Cargo.toml(289B)
----README.md(2KB)
----tests()
--------test_npexts.py(3KB)
----.gitattributes(63B)

网友评论