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