Shortcuts

torcharrow.DataFrame.sum

DataFrame.sum()

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

Examples

>>> import torcharrow as ta
>>> df = ta.dataframe({"a": [1,2,None,4],
                        "b": [5, 6, None, 8]
                        })
>>> df.sum()
index    a    b
-------  ---  ---
    0    7    19
dtype: Struct([Field('a', Int64(nullable=True)), Field('b', Int64(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