推荐学习书目
› 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
MiracleTony
V2EX  ›  Python

Dataframe 计算性能好慢

  •  
  •   MiracleTony · Aug 13, 2018 · 2944 views
    This topic created in 3027 days ago, the information mentioned may be changed or developed.

    我用两个 3000*1 的 dataframe 相减 需要耗费 1-3s 的时间,太慢了,有没有什么解决方法

    neosfung
    neosfung
    Aug 13, 2018
    1
    dask ?
    bigtan
    bigtan
    Aug 13, 2018
    2
    你的用法有问题吧 代码贴出来
    MiracleTony
    MiracleTony
    OP
    Aug 13, 2018
    3
    DiffFrame = preFrame - postFrame
    就很简单的两个 dataframe 相减呀, 大小是 3000*1 的,竟然要用 1 秒多
    billgreen1
    billgreen1
    Aug 13, 2018
    4
    @MiracleTony 给一个可重复的例子
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4764 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 02:57 · PVG 10:57 · LAX 18:57 · JFK 21:57
    ♥ Do have faith in what you're doing.