Shortcuts

torcharrow.DataFrame.mean

DataFrame.mean()

Return the mean of the non-null values for each column.

Examples

>>> import torcharrow as ta
>>> df = ta.dataframe({"a": [1.0,2.0,None,6.3],
                        "b": [5.0, 6.0, None, 10.6]
                        })
>>> df.mean()
index    a    b
-------  ---  ---
    0  3.1  7.2
dtype: Struct([Field('a', Float32(nullable=True)), Field('b', Float32(nullable=True))]), count: 1, null_count: 0

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources