捷徑

torcharrow.DataFrame.log

DataFrame.log() DataFrame

返回一個 DataFrame,其中包含每個元素的自然對數值。

範例

>>> import torcharrow as ta
>>> df = ta.dataframe({"a": [1,2,None,4],
                        "b": [5, 6, None, 8]
                        })
>>> df.min()
index         a        b
-------  --------  -------
    0  0         1.60944
    1  0.693147  1.79176
    2
    3  1.38629   2.07944
dtype: Struct([Field('a', Float32(nullable=True)), Field('b', Float32(nullable=True))]), count: 4, null_count: 0

文件

存取 PyTorch 的完整開發者文件

檢視文件

教學課程

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

檢視教學課程

資源

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

檢視資源