set_weight

Set weights for all input objects.

Method call format

set_weight(weight)

Parameters

weight

Description

The weight of each object in the input data in the form of a one-dimensional array-like data.

By default, it is set to 1 for all objects.

Only non-negative values are supported.

Possible types

  • list
  • numpy.ndarray
  • pandas.DataFrame
  • pandas.Series

Default value

Required parameter