hanzhichao2000's recent timeline updates
hanzhichao2000

hanzhichao2000

V2EX member #88994, joined on 2014-12-29 15:47:42 +08:00
  •   The specified image does not exist
    hanzhichao2000's recent replies
    如果涉及数值计算的话,numba 可能用起来更方便,cython 毕竟还要显性配置些东西
    Ref: http://notes-on-cython.readthedocs.io/en/latest/std_dev.html

    Example:

    def pyStdDev(a):
    mean = sum(a) / len(a)
    return math.sqrt((sum(((x - mean)**2 for x in a)) / len(a)))


    In summary:

    ================= ============ ================== =====================
    Method Time (ms) Compared to Python Compared to Numpy
    ================= ============ ================== =====================
    Pure Python 183 x1 x0.03
    Numpy 5.97 x31 x1
    Naive Cython 7.76 x24 x0.8
    Optimised Cython 2.18 x84 x2.7
    Cython calling C 2.22 x82 x2.7
    ================= ============ ================== =====================
    - bitbucket 可以免费放私有代码
    - yandex disk 试试看?
    Sep 7, 2016
    Replied to a topic by zmrenwu Python 1 亿条数据如何使用 Pandas 去重?
    blaze 或 dask ,语法类似 pandas ,比数据库和 Hadoop 都轻
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2871 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 13ms · UTC 15:15 · PVG 23:15 · LAX 08:15 · JFK 11:15
    ♥ Do have faith in what you're doing.