datatable.Frame.mean1()

Calculate the mean value for a single-column Frame.

This function is a shortcut for:

DT.mean()[0, 0]

Parameters

return
None | float

None is returned for string/object columns.

except
ValueError

If called on a Frame that has more or less than one column.

See Also

  • .mean() – similar to this method, but can be applied to a Frame with an arbitrary number of columns.

  • dt.mean() – function for calculatin mean values in a column or an expression; can also be applied per-group.