推荐学习书目
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 · 2528 views
    This topic created in 2840 days ago, the information mentioned may be changed or developed.

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

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