columna API reference - v0.3.0
    Preparing search index...

    Interface Chi2Result

    interface Chi2Result {
        cols?: string[];
        correction?: boolean;
        df: number;
        expected: number[] | number[][];
        lowExpected: boolean;
        pValue: number;
        rows?: string[];
        statistic: number;
        test: "chi-square independence" | "chi-square goodness of fit";
    }
    Index
    cols?: string[]
    correction?: boolean

    Yates continuity correction applied (2×2 tables only).

    df: number
    expected: number[] | number[][]

    Expected counts under H0 (matrix for independence, vector for goodness of fit).

    lowExpected: boolean

    True when any expected count is below 5 — the chi-square approximation is then questionable.

    pValue: number
    rows?: string[]

    Row / column labels when built from DataFrame columns.

    statistic: number
    test: "chi-square independence" | "chi-square goodness of fit"