V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
admirez
V2EX  ›  Python

pandas 计算某列滚动百分比 有高效方式吗? pct_change 太慢了

  •  
  •   admirez · Sep 27, 2020 via iPhone · 1677 views
    This topic created in 2040 days ago, the information mentioned may be changed or developed.
    2 replies    2020-09-30 17:57:48 +08:00
    princelai
        1
    princelai  
       Sep 28, 2020
    自己写函数+numba jit,快是快,但我估计你还是会用回 pandas 的
    admirez
        2
    admirez  
    OP
       Sep 30, 2020 via iPhone
    @princelai 谢谢,那我还是想想别的办法
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1505 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 16:51 · PVG 00:51 · LAX 09:51 · JFK 12:51
    ♥ Do have faith in what you're doing.