woodfly
V2EX  ›  问与答

pandas 中的 @ 运算是什么意思?

  •  
  •   woodfly · Apr 30, 2020 · 1516 views
    This topic created in 2240 days ago, the information mentioned may be changed or developed.
     process @ posteriors["A"]
    
    

    process 是一个 ndarray, posteriors 是一个 DataFrame,这个 @ 运算是在做什么,没搜到。

    2 replies    2020-04-30 23:23:42 +08:00
    sdshiyan2005
        1
    sdshiyan2005  
       Apr 30, 2020
    python 3 的 @操作符表示矩阵乘法。
    operator 说明: https://docs.python.org/3/library/operator.html
    numpy 文档: https://numpy.org/doc/stable/reference/generated/numpy.dot.html?highlight=dot#numpy.dot

    楼主在做 Bayesian?
    woodfly
        2
    woodfly  
    OP
       Apr 30, 2020
    @sdshiyan2005 谢谢,我猜也是,但在 pandas 文档里找半天没看到。是的,我在尝试着用 Bayesian 来做参数估计。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2599 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 55ms · UTC 09:06 · PVG 17:06 · LAX 02:06 · JFK 05:06
    ♥ Do have faith in what you're doing.