culebra.tools.TestOutcome class

class TestOutcome(test: str, data: str, column: str, alpha: float, batches: list, pvalue: numpy.ndarray)

Bases: NamedTuple

Create new instance of TestOutcome(test, data, column, alpha, batches, pvalue)

Attributes

TestOutcome.alpha: float

Significance level

TestOutcome.batches: list

Labels of all the analyzed batches

TestOutcome.column: str

Column key in the dataframe

TestOutcome.data: str

Key for the dataframe containing the data

TestOutcome.pvalue: ndarray

p-value(s) returned by the test

TestOutcome.test: str

Name of the test

Properties

property TestOutcome.success: ndarray

Check the success of the test.

Returns:

A boolean array showing where the null hypothesis is met

Return type:

ndarray[bool]

Dunder methods

TestOutcome.__repr__() str

Print all the input parameters and outputs returned by a test.

TestOutcome.__str__() str

Pretty print of the success and p-values returned by a test.