analyzer.modules.common.categories

Classes

CategoryDesc

SimpleCategory

Create a simple numerical category from an input column.

Functions

addCategory(columns, name, data, axis)

Module Contents

analyzer.modules.common.categories.addCategory(columns, name, data, axis)[source]
class analyzer.modules.common.categories.CategoryDesc[source]
column: analyzer.core.columns.Column[source]
axis: analyzer.modules.common.axis.Axis[source]
class analyzer.modules.common.categories.SimpleCategory[source]

Bases: analyzer.core.analysis_modules.AnalyzerModule

Create a simple numerical category from an input column.

This analyzer maps a numeric column to a category and registers it in the pipeline with associated axis information for plotting or binning. This axis will be added to all subsequent histograms.

Parameters

input_colColumn

Input column whose values define the category.

cat_namestr

Name of the category to create.

binsint

Number of bins for the category axis.

startfloat

Minimum value of the category axis.

stopfloat

Maximum value of the category axis.

input_col: analyzer.core.columns.Column[source]
cat_name: str[source]
bins: int[source]
start: float[source]
stop: float[source]
inputs(metadata)[source]
outputs(metadata)[source]
run(columns, params)[source]