捷徑

torcharrow.DataFrame.median

DataFrame.median()

返回每一欄非空值的中位數。

範例

>>> import torcharrow as ta
>>> df = ta.dataframe({"a": [1.0,2.0,None,3.0],
                        "b": [5.0, 7.0, None, 9.0]
                        })
>>> df.mean()
index    a    b
-------  ---  ---
    0    2    7
dtype: Struct([Field('a', Float32(nullable=True)), Field('b', Float32(nullable=True))]), count: 1, null_count: 0

文件

存取 PyTorch 的完整開發者文件

檢視文件

教學課程

取得適用於初學者和進階開發者的深入教學課程

檢視教學課程

資源

尋找開發資源並獲得問題解答

檢視資源