flasc.utilities.energy_ratio_utilities.cut

Contents

flasc.utilities.energy_ratio_utilities.cut#

flasc.utilities.energy_ratio_utilities.cut(col_name, edges)[source]#

Bins the values in the specified column according to the given edges.

Return type:

Expr

Parameters:
  • col_name (str) -- The name of the column to bin.

  • edges (array-like) -- The edges of the bins. Values will be placed into the bin whose left edge is the largest edge less than or equal to the value, and whose right edge is the smallest edge greater than the value.

Returns: expression: An expression object that can be used to bin the column.