flasc.utilities.energy_ratio_utilities.cut

Contents

flasc.utilities.energy_ratio_utilities.cut#

flasc.utilities.energy_ratio_utilities.cut(col_name: str, edges: ndarray | list) Expr[source]#

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

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.

Return type:

Expr

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