cr.cube 3.1.2__tar.gz → 3.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cr_cube-3.1.2 → cr_cube-3.1.4}/HISTORY.md +4 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/PKG-INFO +9 -5
- {cr_cube-3.1.2 → cr_cube-3.1.4}/README.md +8 -4
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/__init__.py +1 -1
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/cubepart.py +52 -19
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/matrix/assembler.py +148 -2
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr_cube.egg-info/PKG-INFO +9 -5
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/integration/test_cubepart.py +144 -3
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/integration/test_matrix.py +1 -2
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/matrix/test_assembler.py +201 -5
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/test_cubepart.py +12 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/.coveragerc +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/.flake8 +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/.pre-commit-config.yaml +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/.readthedocs.yaml +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/LICENSE +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/MANIFEST.in +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/Makefile +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/docs/Makefile +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/docs/source/Makefile +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/docs/source/conf.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/docs/source/crunch_logo.png +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/docs/source/cube.rst +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/docs/source/cubepart.rst +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/docs/source/dimension.rst +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/docs/source/index.rst +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/docs/source/quickstart.rst +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/requirements-rtd.txt +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/setup.cfg +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/setup.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/__init__.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/collator.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/cube.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/dimension.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/enums.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/matrix/__init__.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/matrix/cubemeasure.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/matrix/measure.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/matrix/subtotals.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/measures/__init__.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/measures/pairwise_significance.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/min_base_size_mask.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/scalar.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/smoothing.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/stripe/__init__.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/stripe/assembler.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/stripe/cubemeasure.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/stripe/insertion.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/stripe/measure.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr/cube/util.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr_cube.egg-info/SOURCES.txt +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr_cube.egg-info/dependency_links.txt +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr_cube.egg-info/namespace_packages.txt +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr_cube.egg-info/requires.txt +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr_cube.egg-info/top_level.txt +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/src/cr_cube.egg-info/zip-safe +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/__init__.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/admit-x-dept-unweighted-col-prop-moe.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/ca-subvar-ca-cat-x-cat-date-scale-means-w2.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/ca-subvar-x-ca-cat-cat-date-smoothed-col-idx-w3.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/ca-subvar-x-ca-cat-cat-date-smoothed-col-pct-w3.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/ca-subvar-x-ca-cat-hs-pw-pvals.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/ca-subvar-x-ca-cat-hs-pw-tstats.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/ca-x-cat-hs-explicit-order.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/ca-x-mr-explicit-order.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-hs-subdiff-x-cat-pw-pvals.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-hs-subdiff-x-cat-pw-tstats.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-hs-x-cat-date-smoothed-col-idx-w3.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-hs-x-cat-date-smoothed-col-pct-w3.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-hs-x-mr-col-moe.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-hs-x-mr-col-stddev.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-hs-x-mr-col-stderr.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-hs-x-mr-column-proportions.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-hs-x-mr-columns-margin-proportions.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-hs-x-mr-pvals.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-hs-x-mr-pw-idxs.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-hs-x-mr-row-margin-proportions.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-hs-x-mr-row-proportions.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-hs-x-mr-tbl-stddev.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-hs-x-mr-tbl-stderr.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-hs-x-mr-zscores.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-col-idx-explicit-order.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-col-props-moe.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-date-smoothed-col-pct-w1.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-date-smoothed-scale-means-w2.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-date-wgtd-smoothed-col-idx-w4.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-date-wgtd-smoothed-col-pct-w4.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-explicit-order.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-hs-pw-idxs-alt.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-hs-pw-idxs.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-hs-pw-pvals.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-hs-pw-tstats.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-hs-scale-mean-pw-idxs-alt.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-hs-scale-mean-pw-idxs.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-hs-scale-means-pw-pvals.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-hs-scale-means-pw-tstats.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-population-counts-moe.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-population-counts.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-pruning-hs-col-prop-moe.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-pruning-hs-table-prop-moe.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-pw-idxs-recip.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-pw-idxs.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-pw-pvals.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-pw-tstats.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-scale-mean-pw-idxs-alt.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-scale-mean-pw-idxs.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-ucounts-explicit-order.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-wgtd-pw-indices.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-wgtd-pw-pvals.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-wgtd-pw-tstats.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-cat-zscores-explicit-order.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-mr-explicit-order.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-mr-pw-idxs.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-mr-scale-mean-pw-idxs-alt.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-mr-scale-mean-pw-idxs.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-mr-x-cat-date-smoothed-col-idx-w3.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat-x-mr-x-cat-date-smoothed-col-pct-w3.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat_x_cat_hirotsu_chi_squared.txt +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat_x_cat_hirotsu_pvals.txt +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/cat_x_cat_with_hs_hirotsu_pvals.txt +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/col-per-moe-cat-x-cat-hs-2rows-1col.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/col-std-dev-cat-x-cat-hs-2rows-1col.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/col-std-err-cat-x-cat-hs-2rows-1col.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/datetime-x-cat-date-smoothed-col-idx-w3.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/datetime-x-cat-date-smoothed-col-pct-w3.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/econ-gender-x-ideology-weighted-col-prop-moe.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/econ-gender-x-ideology-weighted-row-prop-moe.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/econ-gender-x-ideology-weighted-row-std-dev.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/econ-gender-x-ideology-weighted-table-prop-moe.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-date-smoothed-col-idx-w3.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-date-smoothed-col-pct-w3.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-explicit-order.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-hs-col-moe.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-hs-col-stddev.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-hs-col-stderr.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-hs-column-proportions.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-hs-columns-margin-proportions.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-hs-explicit-order.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-hs-pvals.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-hs-pw-idxs.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-hs-row-margin-proportions.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-hs-row-proportions.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-hs-tbl-stddev.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-hs-tbl-stderr.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-hs-zscores.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-pw-idxs-alt.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-pw-idxs.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-weighted-col-moe.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-weighted-col-std-dev.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-weighted-col-std-err.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-weighted-table-moe.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-weighted-table-std-dev.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-weighted-table-std-err.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-cat-weighted-zscores.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-mr-column-proportions.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-mr-columns-margin-proportions.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-mr-explicit-order.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-mr-pw-idxs.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-mr-pw-pvals.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-mr-pw-tstats.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-mr-row-margin-proportions.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr-x-mr-row-proportions.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr_x_cat_chi_squared_rows.txt +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/mr_x_cat_pairwise_pvals.txt +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/num-arr-means-grouped-by-cat-hs-p-vals-col-7.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/num-arr-means-grouped-by-cat-hs-t-stats-col-7.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/num-arr-means-grouped-by-cat-p-vals-col-4.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/num-arr-means-grouped-by-cat-t-stats-col-4.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/num-array-means-grouped-by-cat-date-smoothed.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/numeric-x-cat-date-smoothed-col-idx-w3.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/numeric-x-cat-date-smoothed-col-pct-w3.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/txt-x-cat-date-smoothed-col-idx-w3.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/expectations/txt-x-cat-date-smoothed-col-pct-w3.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/__init__.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/admit-x-dept-unweighted.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/admit-x-gender-weighted.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/age-x-accrpipe.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-as-0th.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-cat-x-ca-subvar.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-cat-x-mr-x-ca-subvar-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-food-groups-x-shape-of-pasta-with-insertions.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-items-x-ca-cat-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-single-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-subdiff.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-subvar-hs-x-mr-x-ca-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-subvar-hs-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-subvar-x-ca-cat-empties.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-subvar-x-ca-cat-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-subvar-x-ca-cat-mean.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-subvar-x-ca-cat-x-cat-date.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-subvar-x-ca-cat-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-with-nets.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-x-cat-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-x-mr-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-x-mr-sig-testing-subtotals.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-x-mr-weighted-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/ca-x-single-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-4-x-cat-4.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-4-x-cat-5.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-date-mean.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-date-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-date.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-hs-mt-x-cat-hs-mt.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-hs-mt.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-hs-subdiff-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-hs-x-cat-date.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-hs-x-cat-hs-empties.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-hs-x-cat-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-hs-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-hs-x-mr-wgtd.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-hs-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-mean.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-means-and-counts.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-means-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-median.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-stddev.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-subtot-order.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-sum-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-sum.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-all-missing-row-elements.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-date-wgtd.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-date.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-filt-complete.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-filt.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-german-weighted.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-hs-2rows-1col.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-hs-missing.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-hs-total-bottom.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-mean-subtot.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-mean-wgtd.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-weighted-ttests.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-wgtd.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-with-empty-cols.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-x-cat-wgtd-no-query-weight.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat-x-cat-wgtd.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-date-hs-prune.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-datetime.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-items-x-cats-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-logical.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-mr-2.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-mr-pruned-col.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-mr-pruned-row-col.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-mr-pruned-row.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-mr-sentry.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-mr-stddev.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-mr-subvar-means.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-mr-unicode-sv-alias.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-mr-weighted-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-mr-x-cat-date.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-mr-x-cat-missing.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-mr-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-mr-x-mr-empty-cols.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-mr-x-mr-pruned-rows.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-mr-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-num-hs-prune.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat-x-num-x-datetime.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/countries-x-shapes-of-pasta.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/date.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/datetime-x-cat-date.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/deck-with-mean.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/dichotomized-numeric-mean.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/direction-of-country-x-education-weighted.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/econ-blame-with-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/econ-blame-x-ideology-col-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/econ-blame-x-ideology-row-and-col-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/econ-blame-x-ideology-row-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/econ-gender-x-ideology-weighted.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/econ-mean-age-blame-x-gender.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/econ-mean-no-dims.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/econ-nodata-no-dims.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/econ-us-problem-x-bigger-problem.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/edu-fav5.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/food-groops-x-starttime-x-nordic-countries.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/food-group-x-shape-of-pasta-2rows-insertion.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/food-group-x-shape-pasta-2rows1col-insertion.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/fruit-hs-top-bottom.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/fruit-x-pets-array-pets-first.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/fruit-x-pets-array-subvars-first.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/fruit-x-pets-array.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/fruit-x-pets-hs-top-bottom.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/fruit-x-pets.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/full-cube.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/gender-party-race.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/gender-x-weight.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/huffpost-actions-x-household.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/letters-x-pets-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/logical-univariate.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mean-cat-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/means-3d.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/means-cat-hs-x-cat-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/means-cat-x-cat-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/means-cat-x-mr-2.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/means-cat-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/means-mr-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/median-cat-x-cat-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/median-cat-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/median-mr-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/missing-cat-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-1-x-mr-3.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-mean-filt-wgtd.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-mean-weighted.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-mean.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-median.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-stddev.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-sum.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-wgtd.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-ca-cat-x-ca-subvar.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-ca-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-cat-2.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-cat-both-single-element.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-cat-date.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-cat-hs-mt.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-cat-mean-weighted.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-cat-mean.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-cat-not-so-simple-alltypes.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-cat-profiles-stats-weighted.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-cat-pruned-col.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-cat-pruned-row-col.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-cat-pruned-row.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-cat-with-means.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-cat-x-mr-prune.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-cat-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-mr-2.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-mr-index-table.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-mr-mean-weighted.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-mr-mean.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-mr-means.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-mr-median.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-mr-selected-categories.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-mr-single-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-mr-sum.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-mr-with-pruning.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-mr-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-other-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr-x-single-wave.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr_insertions/cat-hs-top-btm.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr_insertions/cat-x-mr-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr_insertions/cat-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr_insertions/mr-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr_insertions/mr-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr_insertions/scorecard.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/mr_insertions/univariate-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/not-mr-cats.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/nssat-mr-x-3vl.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/nssat-mr-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/num-binned.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/num-x-num-empty.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/num.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric-measures-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric-x-cat-date.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-cat-date.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-cat-hs-weighted.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-cat-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-cat-weighted.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-date.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-means-no-grouping-weighted.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-means-no-grouping.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-means-scale-measures.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-means-x-mr-weighted.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-means-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-median-grouped-by-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-median-no-grouping.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-median-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-multi-numeric-measures-grouped-by-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-multi-numeric-measures-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-stddev-grouped-by-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-stddev-no-grouping.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-stddev-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-sum-grouped-by-cat-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-sum-grouped-by-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-sum-no-grouping.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-sum-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/numeric_arrays/num-arr-sums-with-nan-values.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/om-sgp8334215-vn-2019-sep-19-strand.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/om-sgp8334215-vn-2019-sep-19.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/overlaps/ca-sub-x-ca-cat-x-mr-sub-x-mr-sel.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/overlaps/cat-hs-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/overlaps/cat-simple-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/overlaps/cat-st-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/overlaps/cat-x-mr-gender-x-all-pets-owned.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/overlaps/cat-x-mr-realistic-example.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/overlaps/cat-x-mr-sub-x-mr-sel.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/overlaps/mr-single-subvar-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/overlaps/mr-x-mr-realistic-example.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/overlaps/mr-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/pairwise-4x4.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/pairwise-hirotsu-illness-x-occupation-plain-weights.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/pairwise-hirotsu-illness-x-occupation-square-weights.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/pairwise-hirotsu-illness-x-occupation-with-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/pairwise-hirotsu-illness-x-occupation.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/pairwise-hirotsu-occupation-x-illness.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/pairwise-random-3x4.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/pairwise-with-zero-margin.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/pets-array-cat-first.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/pets-array-subvar-first.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/pets-array-x-pets.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/pets-array.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/pets-x-fruit-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/pets-x-fruit.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/pets-x-pets-array.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/pets-x-pets.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/profiles-percents.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/prompted-awareness.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/same-counts-3x4.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scale-with-null-values.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scale_means/bolshevik-hair.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scale_means/ca-cat-x-items.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scale_means/ca-items-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scale_means/ca-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scale_means/cat-nps-numval-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scale_means/cat-single-element-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scale_means/cat-x-ca-cat-x-items.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scale_means/cat-x-cat-sm-margin.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scale_means/cat-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scale_means/cat-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scale_means/mr-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scale_means/univariate-ca-subvar.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scale_means/univariate-cat-with-all-null-numeric-value.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scale_means/univariate-cat-with-null-numeric-value.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scale_means/univariate-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/scorecard.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/selected-3way-2-filledmissing.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/selected-3way-filledmissing.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/selected-crosstab-array-first.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/selected-crosstab-array-last.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/simple-ca-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/simple-cat-array.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/simple-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/single-col-margin-not-iterable.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/squared-weights-cat-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/squared-weights.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/starttime-x-nordic-countries-x-food-groops.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/stats-test.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/sum-cat-x-mr.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/sum-mr-x-cat.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/test-dashboard-fixture.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/text.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/transforms/generic-transforms-dicts.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/transforms/test-dashboard-transform-no-ordering.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/transforms/test-dashboard-transform-single-el-visible.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/txt-x-cat-date.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/univ-mr-with-hs.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/univariate-categorical.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/fixtures/xyz-simple-alltypes.json +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/integration/__init__.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/integration/test_collator.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/integration/test_cube.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/integration/test_dimension.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/integration/test_headers_and_subtotals.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/integration/test_index_table.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/integration/test_multiple_response.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/integration/test_numeric_array.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/integration/test_pairwise_significance.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/integration/test_scale_additional_measures.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/integration/test_scale_means.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/integration/test_smoothing.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/integration/test_stripe.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/__init__.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/matrix/__init__.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/matrix/test_cubemeasure.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/matrix/test_measure.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/matrix/test_subtotals.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/stripe/__init__.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/stripe/test_assembler.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/stripe/test_cubemeasure.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/stripe/test_insertion.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/stripe/test_measure.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/test_collator.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/test_cube.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/test_dimension.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/test_enum.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/test_scalar.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/test_smoothing.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unit/test_util.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/unitutil.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tests/util.py +0 -0
- {cr_cube-3.1.2 → cr_cube-3.1.4}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cr_cube
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.4
|
|
4
4
|
Summary: Crunch.io Cube library
|
|
5
5
|
Home-page: https://github.com/Crunch-io/crunch-cube/
|
|
6
6
|
Author: Crunch.io
|
|
@@ -102,6 +102,14 @@ Please visit <https://crunch-cube.readthedocs.io/en/latest> for the API referenc
|
|
|
102
102
|
|
|
103
103
|
## Changes
|
|
104
104
|
|
|
105
|
+
### 3.1.4
|
|
106
|
+
|
|
107
|
+
- Sort column by opposing row
|
|
108
|
+
|
|
109
|
+
### 3.1.3
|
|
110
|
+
|
|
111
|
+
- Bug fix for _Strand.table_percentages
|
|
112
|
+
|
|
105
113
|
### 3.1.2
|
|
106
114
|
|
|
107
115
|
- Bug fix for scale mean diff rows and cols
|
|
@@ -122,8 +130,4 @@ Please visit <https://crunch-cube.readthedocs.io/en/latest> for the API referenc
|
|
|
122
130
|
|
|
123
131
|
- Bug fix median measure for exporter
|
|
124
132
|
|
|
125
|
-
### 3.0.43
|
|
126
|
-
|
|
127
|
-
- Median measure
|
|
128
|
-
|
|
129
133
|
For a complete list of changes see [history](https://github.com/Crunch-io/crunch-cube/blob/master/HISTORY.md).
|
|
@@ -88,6 +88,14 @@ Please visit <https://crunch-cube.readthedocs.io/en/latest> for the API referenc
|
|
|
88
88
|
|
|
89
89
|
## Changes
|
|
90
90
|
|
|
91
|
+
### 3.1.4
|
|
92
|
+
|
|
93
|
+
- Sort column by opposing row
|
|
94
|
+
|
|
95
|
+
### 3.1.3
|
|
96
|
+
|
|
97
|
+
- Bug fix for _Strand.table_percentages
|
|
98
|
+
|
|
91
99
|
### 3.1.2
|
|
92
100
|
|
|
93
101
|
- Bug fix for scale mean diff rows and cols
|
|
@@ -108,8 +116,4 @@ Please visit <https://crunch-cube.readthedocs.io/en/latest> for the API referenc
|
|
|
108
116
|
|
|
109
117
|
- Bug fix median measure for exporter
|
|
110
118
|
|
|
111
|
-
### 3.0.43
|
|
112
|
-
|
|
113
|
-
- Median measure
|
|
114
|
-
|
|
115
119
|
For a complete list of changes see [history](https://github.com/Crunch-io/crunch-cube/blob/master/HISTORY.md).
|
|
@@ -282,13 +282,17 @@ class _Slice(CubePartition):
|
|
|
282
282
|
def column_aliases(self):
|
|
283
283
|
"""1D str ndarray of alias for each column, for use as column headings."""
|
|
284
284
|
dim = self._dimensions[1]
|
|
285
|
-
return np.array(dim.element_aliases + dim.subtotal_aliases)[
|
|
285
|
+
return np.array(dim.element_aliases + dim.subtotal_aliases)[
|
|
286
|
+
self._column_order_signed_indexes
|
|
287
|
+
]
|
|
286
288
|
|
|
287
289
|
@lazyproperty
|
|
288
290
|
def column_codes(self):
|
|
289
291
|
"""1D int ndarray of code for each column, for use as column headings."""
|
|
290
292
|
dim = self._dimensions[1]
|
|
291
|
-
return np.array(dim.element_ids + dim.insertion_ids)[
|
|
293
|
+
return np.array(dim.element_ids + dim.insertion_ids)[
|
|
294
|
+
self._column_order_signed_indexes
|
|
295
|
+
]
|
|
292
296
|
|
|
293
297
|
@lazyproperty
|
|
294
298
|
def column_index(self):
|
|
@@ -304,7 +308,26 @@ class _Slice(CubePartition):
|
|
|
304
308
|
def column_labels(self):
|
|
305
309
|
"""1D str ndarray of name for each column, for use as column headings."""
|
|
306
310
|
dim = self._dimensions[1]
|
|
307
|
-
return np.array(dim.element_labels + dim.subtotal_labels)[
|
|
311
|
+
return np.array(dim.element_labels + dim.subtotal_labels)[
|
|
312
|
+
self._column_order_signed_indexes
|
|
313
|
+
]
|
|
314
|
+
|
|
315
|
+
def column_order(self, format=ORDER_FORMAT.SIGNED_INDEXES):
|
|
316
|
+
"""1D np.int64 ndarray of idx for each assembled column of matrix.
|
|
317
|
+
|
|
318
|
+
If order format is `SIGNED_INDEXES` negative values represent inserted
|
|
319
|
+
subtotal-col locations; for `BOGUS_IDS` insertios are represented by
|
|
320
|
+
`ins_{insertion_id}` string.
|
|
321
|
+
|
|
322
|
+
Indices appear in the order columns are to appear in the final result.
|
|
323
|
+
|
|
324
|
+
Needed for reordering color palette in exporter.
|
|
325
|
+
"""
|
|
326
|
+
if format == ORDER_FORMAT.BOGUS_IDS:
|
|
327
|
+
return _BaseOrderHelper.column_display_order(
|
|
328
|
+
self._dimensions, self._measures, format=ORDER_FORMAT.BOGUS_IDS
|
|
329
|
+
)
|
|
330
|
+
return self._column_order_signed_indexes
|
|
308
331
|
|
|
309
332
|
@lazyproperty
|
|
310
333
|
def column_percentages(self):
|
|
@@ -641,7 +664,11 @@ class _Slice(CubePartition):
|
|
|
641
664
|
def inserted_column_idxs(self):
|
|
642
665
|
"""tuple of int index of each subtotal column in slice."""
|
|
643
666
|
# --- insertions have a negative idx in their order sequence ---
|
|
644
|
-
return tuple(
|
|
667
|
+
return tuple(
|
|
668
|
+
i
|
|
669
|
+
for i, col_idx in enumerate(self._column_order_signed_indexes)
|
|
670
|
+
if col_idx < 0
|
|
671
|
+
)
|
|
645
672
|
|
|
646
673
|
@lazyproperty
|
|
647
674
|
def inserted_row_idxs(self):
|
|
@@ -662,7 +689,9 @@ class _Slice(CubePartition):
|
|
|
662
689
|
categories of CAT dimensions, are not derived. Subtotals are also not derived
|
|
663
690
|
in this sense, because they're not even part of the data (elements).
|
|
664
691
|
"""
|
|
665
|
-
return self._derived_element_idxs(
|
|
692
|
+
return self._derived_element_idxs(
|
|
693
|
+
self._dimensions[1], self._column_order_signed_indexes
|
|
694
|
+
)
|
|
666
695
|
|
|
667
696
|
@lazyproperty
|
|
668
697
|
def derived_row_idxs(self):
|
|
@@ -682,7 +711,9 @@ class _Slice(CubePartition):
|
|
|
682
711
|
@lazyproperty
|
|
683
712
|
def diff_column_idxs(self):
|
|
684
713
|
"""tuple of int index of each difference column-element in slice."""
|
|
685
|
-
return self._diff_element_idxs(
|
|
714
|
+
return self._diff_element_idxs(
|
|
715
|
+
self._dimensions[1], self._column_order_signed_indexes
|
|
716
|
+
)
|
|
686
717
|
|
|
687
718
|
@lazyproperty
|
|
688
719
|
def diff_row_idxs(self):
|
|
@@ -766,7 +797,7 @@ class _Slice(CubePartition):
|
|
|
766
797
|
alpha,
|
|
767
798
|
only_larger,
|
|
768
799
|
)
|
|
769
|
-
for col in range(len(self.
|
|
800
|
+
for col in range(len(self._column_order_signed_indexes))
|
|
770
801
|
]
|
|
771
802
|
).T
|
|
772
803
|
|
|
@@ -783,7 +814,7 @@ class _Slice(CubePartition):
|
|
|
783
814
|
Raises `ValueError if the cube-result does not include `overlaps`
|
|
784
815
|
and `valid_overlaps` cube-measures.
|
|
785
816
|
"""
|
|
786
|
-
base_column_idx = self.
|
|
817
|
+
base_column_idx = self._column_order_signed_indexes[column_idx]
|
|
787
818
|
if self._cube_has_overlaps:
|
|
788
819
|
# If overlaps are defined, calculate significance based on them
|
|
789
820
|
return self._assemble_matrix(
|
|
@@ -806,7 +837,7 @@ class _Slice(CubePartition):
|
|
|
806
837
|
Raises `ValueError if the cube-result does not include `overlaps`
|
|
807
838
|
and `valid_overlaps` cube-measures.
|
|
808
839
|
"""
|
|
809
|
-
base_column_idx = self.
|
|
840
|
+
base_column_idx = self._column_order_signed_indexes[column_idx]
|
|
810
841
|
if self._cube_has_overlaps:
|
|
811
842
|
# If overlaps are defined, calculate significance based on them
|
|
812
843
|
return self._assemble_matrix(
|
|
@@ -821,7 +852,7 @@ class _Slice(CubePartition):
|
|
|
821
852
|
|
|
822
853
|
Raises `ValueError if the cube-result does not include `mean` cube-measures.
|
|
823
854
|
"""
|
|
824
|
-
base_column_idx = self.
|
|
855
|
+
base_column_idx = self._column_order_signed_indexes[column_idx]
|
|
825
856
|
return self._assemble_matrix(
|
|
826
857
|
self._measures.pairwise_significance_means_p_vals(base_column_idx).blocks
|
|
827
858
|
)
|
|
@@ -831,7 +862,7 @@ class _Slice(CubePartition):
|
|
|
831
862
|
|
|
832
863
|
Raises `ValueError if the cube-result does not include `mean` cube-measures.
|
|
833
864
|
"""
|
|
834
|
-
base_column_idx = self.
|
|
865
|
+
base_column_idx = self._column_order_signed_indexes[column_idx]
|
|
835
866
|
return self._assemble_matrix(
|
|
836
867
|
self._measures.pairwise_significance_means_t_stats(base_column_idx).blocks
|
|
837
868
|
)
|
|
@@ -860,7 +891,7 @@ class _Slice(CubePartition):
|
|
|
860
891
|
self._alpha,
|
|
861
892
|
self._only_larger,
|
|
862
893
|
)
|
|
863
|
-
for col in range(len(self.
|
|
894
|
+
for col in range(len(self._column_order_signed_indexes))
|
|
864
895
|
]
|
|
865
896
|
).T
|
|
866
897
|
|
|
@@ -882,7 +913,7 @@ class _Slice(CubePartition):
|
|
|
882
913
|
self._alpha_alt,
|
|
883
914
|
self._only_larger,
|
|
884
915
|
)
|
|
885
|
-
for col in range(len(self.
|
|
916
|
+
for col in range(len(self._column_order_signed_indexes))
|
|
886
917
|
]
|
|
887
918
|
).T
|
|
888
919
|
|
|
@@ -1717,7 +1748,7 @@ class _Slice(CubePartition):
|
|
|
1717
1748
|
order = (
|
|
1718
1749
|
self._row_order_signed_indexes
|
|
1719
1750
|
if marginal.orientation == MO.ROWS
|
|
1720
|
-
else self.
|
|
1751
|
+
else self._column_order_signed_indexes
|
|
1721
1752
|
)
|
|
1722
1753
|
|
|
1723
1754
|
return np.hstack(marginal.blocks)[order]
|
|
@@ -1737,7 +1768,7 @@ class _Slice(CubePartition):
|
|
|
1737
1768
|
# --- appears in. This directly produces a final array that is exactly the
|
|
1738
1769
|
# --- desired output.
|
|
1739
1770
|
return np.block(blocks)[
|
|
1740
|
-
np.ix_(self._row_order_signed_indexes, self.
|
|
1771
|
+
np.ix_(self._row_order_signed_indexes, self._column_order_signed_indexes)
|
|
1741
1772
|
]
|
|
1742
1773
|
|
|
1743
1774
|
def _assemble_vector(self, base_vector, subtotals, order, diffs_nan=False):
|
|
@@ -1766,12 +1797,14 @@ class _Slice(CubePartition):
|
|
|
1766
1797
|
return np.hstack([base_vector, vector_subtotals])[order]
|
|
1767
1798
|
|
|
1768
1799
|
@lazyproperty
|
|
1769
|
-
def
|
|
1800
|
+
def _column_order_signed_indexes(self):
|
|
1770
1801
|
"""1D np.int64 ndarray of signed int idx for each assembled column.
|
|
1771
1802
|
|
|
1772
1803
|
Negative values represent inserted subtotal-column locations.
|
|
1773
1804
|
"""
|
|
1774
|
-
return _BaseOrderHelper.column_display_order(
|
|
1805
|
+
return _BaseOrderHelper.column_display_order(
|
|
1806
|
+
self._dimensions, self._measures, format=ORDER_FORMAT.SIGNED_INDEXES
|
|
1807
|
+
)
|
|
1775
1808
|
|
|
1776
1809
|
@lazyproperty
|
|
1777
1810
|
def _columns_dimension_numeric_values(self):
|
|
@@ -1784,7 +1817,7 @@ class _Slice(CubePartition):
|
|
|
1784
1817
|
return np.array(
|
|
1785
1818
|
[
|
|
1786
1819
|
(elements[idx].numeric_value if idx >= 0 else np.nan)
|
|
1787
|
-
for idx in self.
|
|
1820
|
+
for idx in self._column_order_signed_indexes
|
|
1788
1821
|
]
|
|
1789
1822
|
)
|
|
1790
1823
|
|
|
@@ -2405,7 +2438,7 @@ class _Strand(CubePartition):
|
|
|
2405
2438
|
Table-percentage is the fraction of the table weighted-N contributed by each
|
|
2406
2439
|
row, expressed as a percentage (float between 0.0 and 100.0 inclusive).
|
|
2407
2440
|
"""
|
|
2408
|
-
return
|
|
2441
|
+
return self.table_proportions * 100
|
|
2409
2442
|
|
|
2410
2443
|
@lazyproperty
|
|
2411
2444
|
def table_proportion_moes(self):
|
|
@@ -37,7 +37,7 @@ class _BaseOrderHelper:
|
|
|
37
37
|
self._format = format
|
|
38
38
|
|
|
39
39
|
@classmethod
|
|
40
|
-
def column_display_order(cls, dimensions, second_order_measures):
|
|
40
|
+
def column_display_order(cls, dimensions, second_order_measures, format):
|
|
41
41
|
"""1D np.int64 ndarray of signed int idx for each column of measure matrix.
|
|
42
42
|
|
|
43
43
|
Negative values represent inserted-vector locations. Returned sequence reflects
|
|
@@ -49,7 +49,21 @@ class _BaseOrderHelper:
|
|
|
49
49
|
# --- _ColumnOrderHelper, so there's not much to this yet, just keeping
|
|
50
50
|
# --- form consistent with `.row_display_order()` and we'll elaborate this when
|
|
51
51
|
# --- we add sort-by-value to columns.
|
|
52
|
-
|
|
52
|
+
collation_method = dimensions[1].order_spec.collation_method
|
|
53
|
+
HelperCls = (
|
|
54
|
+
_SortColumnsByLabelHelper
|
|
55
|
+
if collation_method == CM.LABEL
|
|
56
|
+
else (
|
|
57
|
+
_SortColumnsByBaseRowHelper
|
|
58
|
+
if collation_method == CM.OPPOSING_ELEMENT
|
|
59
|
+
else (
|
|
60
|
+
_SortColumnsByInsertedRowHelper
|
|
61
|
+
if collation_method == CM.OPPOSING_INSERTION
|
|
62
|
+
else _ColumnOrderHelper
|
|
63
|
+
)
|
|
64
|
+
)
|
|
65
|
+
)
|
|
66
|
+
return HelperCls(dimensions, second_order_measures, format)._display_order
|
|
53
67
|
|
|
54
68
|
@classmethod
|
|
55
69
|
def row_display_order(cls, dimensions, second_order_measures, format):
|
|
@@ -349,6 +363,138 @@ class _BaseSortRowsByValueHelper(_RowOrderHelper):
|
|
|
349
363
|
)
|
|
350
364
|
|
|
351
365
|
|
|
366
|
+
class _BaseSortColumnsByValueHelper(_ColumnOrderHelper):
|
|
367
|
+
"""A base class that orders elements by a set of values.
|
|
368
|
+
|
|
369
|
+
This class is intended only to serve as a base for the other sort-by-value classes
|
|
370
|
+
which must all provide their own implentations of `_element_values` and
|
|
371
|
+
`_subtotal_values`.
|
|
372
|
+
|
|
373
|
+
If `_order` encouters a ValueError, it falls back to the payload order.
|
|
374
|
+
"""
|
|
375
|
+
|
|
376
|
+
@lazyproperty
|
|
377
|
+
def _element_values(self):
|
|
378
|
+
"""Sequence of body values that form the basis for sort order.
|
|
379
|
+
|
|
380
|
+
Must be implemented by child classes.
|
|
381
|
+
"""
|
|
382
|
+
raise NotImplementedError( # pragma: no cover
|
|
383
|
+
f"{type(self).__name__} must implement `._element_values`"
|
|
384
|
+
)
|
|
385
|
+
|
|
386
|
+
@lazyproperty
|
|
387
|
+
def _order(self):
|
|
388
|
+
"""tuple of int element-idx specifying ordering of dimension elements."""
|
|
389
|
+
try:
|
|
390
|
+
return SortByValueCollator.display_order(
|
|
391
|
+
self._columns_dimension,
|
|
392
|
+
self._element_values,
|
|
393
|
+
self._subtotal_values,
|
|
394
|
+
self._empty_column_idxs,
|
|
395
|
+
self._format,
|
|
396
|
+
)
|
|
397
|
+
except ValueError:
|
|
398
|
+
return PayloadOrderCollator.display_order(
|
|
399
|
+
self._columns_dimension, self._empty_column_idxs, self._format
|
|
400
|
+
)
|
|
401
|
+
|
|
402
|
+
@lazyproperty
|
|
403
|
+
def _subtotal_values(self):
|
|
404
|
+
"""Sequence of subtotal values that form the basis for sort order.
|
|
405
|
+
|
|
406
|
+
Must be implemented by child classes.
|
|
407
|
+
"""
|
|
408
|
+
raise NotImplementedError( # pragma: no cover
|
|
409
|
+
f"{type(self).__name__} must implement `._subtotal_values`"
|
|
410
|
+
)
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
class _SortColumnsByLabelHelper(_BaseSortColumnsByValueHelper):
|
|
414
|
+
@lazyproperty
|
|
415
|
+
def _element_values(self):
|
|
416
|
+
"""Sequence of body labels that form the basis for sort order.
|
|
417
|
+
|
|
418
|
+
There is one value per column and values appear in payload (dimension) element
|
|
419
|
+
order. These are only the "base" values and do not include insertions.
|
|
420
|
+
"""
|
|
421
|
+
return np.array(self._dimensions[1].element_labels)
|
|
422
|
+
|
|
423
|
+
@lazyproperty
|
|
424
|
+
def _subtotal_values(self):
|
|
425
|
+
"""Sequence of col-subtotal labels that contribute to the sort basis.
|
|
426
|
+
|
|
427
|
+
There is one value per column subtotal and labels appear in payload (dimension)
|
|
428
|
+
insertion order.
|
|
429
|
+
"""
|
|
430
|
+
return np.array(self._dimensions[1].subtotal_labels)
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
class _SortColumnsByBaseRowHelper(_BaseSortColumnsByValueHelper):
|
|
434
|
+
@lazyproperty
|
|
435
|
+
def _row_idx(self):
|
|
436
|
+
"""int index of row whose values the sort is based on."""
|
|
437
|
+
row_element_ids = self._rows_dimension.element_ids
|
|
438
|
+
sort_row_id = self._order_spec.element_id
|
|
439
|
+
# --- Need to translate the element id to the shimmed element id
|
|
440
|
+
sort_row_id = self._rows_dimension.translate_element_id(sort_row_id)
|
|
441
|
+
return row_element_ids.index(sort_row_id)
|
|
442
|
+
|
|
443
|
+
@lazyproperty
|
|
444
|
+
def _element_values(self):
|
|
445
|
+
"""Sequence of body values that form the basis for sort order.
|
|
446
|
+
|
|
447
|
+
There is one value per column and values appear in payload (dimension) element
|
|
448
|
+
order. These are only the "base" values and do not include insertions.
|
|
449
|
+
"""
|
|
450
|
+
measure_base_values = self._measure.blocks[0][0]
|
|
451
|
+
return measure_base_values[self._row_idx, :]
|
|
452
|
+
|
|
453
|
+
@lazyproperty
|
|
454
|
+
def _subtotal_values(self):
|
|
455
|
+
"""Sequence of col-subtotal values that contribute to the sort basis.
|
|
456
|
+
|
|
457
|
+
There is one value per column subtotal and values appear in payload (dimension)
|
|
458
|
+
insertion order.
|
|
459
|
+
"""
|
|
460
|
+
measure_subtotal_columns = self._measure.blocks[0][1]
|
|
461
|
+
return measure_subtotal_columns[self._row_idx, :]
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
class _SortColumnsByInsertedRowHelper(_BaseSortColumnsByValueHelper):
|
|
465
|
+
"""Orders columns by the values in an inserted row.
|
|
466
|
+
|
|
467
|
+
This would be like "order cols in descending order by value of 'Top 3' subtotal
|
|
468
|
+
row. An opposing-insertion ordering is only available on a matrix because only
|
|
469
|
+
a matrix dimension has an opposing dimension.
|
|
470
|
+
"""
|
|
471
|
+
|
|
472
|
+
@lazyproperty
|
|
473
|
+
def _element_values(self):
|
|
474
|
+
"""Sequence of insertion "body" values that form the basis for sort order.
|
|
475
|
+
|
|
476
|
+
There is one value per base row and values appear in payload order. These are
|
|
477
|
+
only the "base" insertion values and do not include intersections.
|
|
478
|
+
"""
|
|
479
|
+
insertion_base_values = self._measure.blocks[1][0]
|
|
480
|
+
return insertion_base_values[self._insertion_idx, :]
|
|
481
|
+
|
|
482
|
+
@lazyproperty
|
|
483
|
+
def _insertion_idx(self):
|
|
484
|
+
"""int index of insertion whose values the sort is based on."""
|
|
485
|
+
return self._rows_dimension.insertion_ids.index(self._order_spec.insertion_id)
|
|
486
|
+
|
|
487
|
+
@lazyproperty
|
|
488
|
+
def _subtotal_values(self):
|
|
489
|
+
"""Sequence of col-subtotal intersection values that contribute to sort basis.
|
|
490
|
+
|
|
491
|
+
There is one value per col subtotal and values appear in payload (dimension)
|
|
492
|
+
insertion order.
|
|
493
|
+
"""
|
|
494
|
+
intersections = self._measure.blocks[1][1]
|
|
495
|
+
return intersections[self._insertion_idx, :]
|
|
496
|
+
|
|
497
|
+
|
|
352
498
|
class _SortRowsByBaseColumnHelper(_BaseSortRowsByValueHelper):
|
|
353
499
|
"""Orders elements by the values of an opposing base (not a subtotal) vector.
|
|
354
500
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: cr-cube
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.4
|
|
4
4
|
Summary: Crunch.io Cube library
|
|
5
5
|
Home-page: https://github.com/Crunch-io/crunch-cube/
|
|
6
6
|
Author: Crunch.io
|
|
@@ -102,6 +102,14 @@ Please visit <https://crunch-cube.readthedocs.io/en/latest> for the API referenc
|
|
|
102
102
|
|
|
103
103
|
## Changes
|
|
104
104
|
|
|
105
|
+
### 3.1.4
|
|
106
|
+
|
|
107
|
+
- Sort column by opposing row
|
|
108
|
+
|
|
109
|
+
### 3.1.3
|
|
110
|
+
|
|
111
|
+
- Bug fix for _Strand.table_percentages
|
|
112
|
+
|
|
105
113
|
### 3.1.2
|
|
106
114
|
|
|
107
115
|
- Bug fix for scale mean diff rows and cols
|
|
@@ -122,8 +130,4 @@ Please visit <https://crunch-cube.readthedocs.io/en/latest> for the API referenc
|
|
|
122
130
|
|
|
123
131
|
- Bug fix median measure for exporter
|
|
124
132
|
|
|
125
|
-
### 3.0.43
|
|
126
|
-
|
|
127
|
-
- Median measure
|
|
128
|
-
|
|
129
133
|
For a complete list of changes see [history](https://github.com/Crunch-io/crunch-cube/blob/master/HISTORY.md).
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
"""Integration-test suite for `cr.cube.cubepart` module."""
|
|
4
4
|
|
|
5
|
+
from textwrap import dedent
|
|
5
6
|
import numpy as np
|
|
6
7
|
import pytest
|
|
7
8
|
|
|
@@ -642,6 +643,33 @@ class Test_Slice:
|
|
|
642
643
|
"4",
|
|
643
644
|
)
|
|
644
645
|
|
|
646
|
+
def test_it_knows_bogus_ids_column_order(self):
|
|
647
|
+
transforms = {
|
|
648
|
+
"rows_dimension": {
|
|
649
|
+
"insertions": [
|
|
650
|
+
{
|
|
651
|
+
"function": "subtotal",
|
|
652
|
+
"name": "colors",
|
|
653
|
+
"args": [1, 2, 3],
|
|
654
|
+
"anchor": 3,
|
|
655
|
+
"kwargs": {"positive": [1, 2, 3]},
|
|
656
|
+
"id": 1,
|
|
657
|
+
}
|
|
658
|
+
]
|
|
659
|
+
},
|
|
660
|
+
"columns_dimension": {
|
|
661
|
+
"elements": {"2": {"hide": True}},
|
|
662
|
+
"order": {"type": "explicit", "element_ids": ["bool2", "bool3"]},
|
|
663
|
+
},
|
|
664
|
+
}
|
|
665
|
+
slice_ = Cube(CR.CAT_HS_X_CAT_HS, transforms=transforms).partitions[0]
|
|
666
|
+
assert tuple(slice_.column_order(ORDER_FORMAT.BOGUS_IDS)) == (
|
|
667
|
+
"0",
|
|
668
|
+
"1",
|
|
669
|
+
"3",
|
|
670
|
+
"ins_1",
|
|
671
|
+
)
|
|
672
|
+
|
|
645
673
|
def test_it_provides_derived_indexes_for_mr_x_mr_with_transforms(self):
|
|
646
674
|
transforms = {
|
|
647
675
|
"rows_dimension": {
|
|
@@ -921,6 +949,47 @@ class Test_Slice:
|
|
|
921
949
|
expected = load_python_expression(expectation)
|
|
922
950
|
np.testing.assert_almost_equal(actual, expected)
|
|
923
951
|
|
|
952
|
+
def test_it_can_sort_by_column_by_labels(self):
|
|
953
|
+
transforms = {
|
|
954
|
+
"columns_dimension": {"order": {"type": "label", "direction": "ascending"}}
|
|
955
|
+
}
|
|
956
|
+
slice_ = _Slice(Cube(CR.CAT_4_X_CAT_5), 0, transforms, None, 0)
|
|
957
|
+
expected_slice_repr = """
|
|
958
|
+
_Slice(name='Support', dimension_types='CAT x CAT')
|
|
959
|
+
Showing: COUNT
|
|
960
|
+
As married Divorced Married Never Widowed
|
|
961
|
+
---------- ------------ ---------- --------- ------- ---------
|
|
962
|
+
Plenty 21 3 46 7 0
|
|
963
|
+
Enough 55 13 127 29 1
|
|
964
|
+
Not enough 17 41 253 47 1
|
|
965
|
+
N/A 80 19 247 26 4
|
|
966
|
+
Available measures: [<CUBE_MEASURE.COUNT: 'count'>]
|
|
967
|
+
"""
|
|
968
|
+
assert slice_.__repr__() == dedent(expected_slice_repr).strip()
|
|
969
|
+
|
|
970
|
+
transforms = {
|
|
971
|
+
"columns_dimension": {
|
|
972
|
+
"order": {
|
|
973
|
+
"type": "label",
|
|
974
|
+
"direction": "ascending",
|
|
975
|
+
"fixed": {"bottom": [1]},
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
slice_ = _Slice(Cube(CR.CAT_4_X_CAT_5), 0, transforms, None, 0)
|
|
980
|
+
expected_slice_repr = """
|
|
981
|
+
_Slice(name='Support', dimension_types='CAT x CAT')
|
|
982
|
+
Showing: COUNT
|
|
983
|
+
As married Divorced Never Widowed Married
|
|
984
|
+
---------- ------------ ---------- ------- --------- ---------
|
|
985
|
+
Plenty 21 3 7 0 46
|
|
986
|
+
Enough 55 13 29 1 127
|
|
987
|
+
Not enough 17 41 47 1 253
|
|
988
|
+
N/A 80 19 26 4 247
|
|
989
|
+
Available measures: [<CUBE_MEASURE.COUNT: 'count'>]
|
|
990
|
+
"""
|
|
991
|
+
assert slice_.__repr__() == dedent(expected_slice_repr).strip()
|
|
992
|
+
|
|
924
993
|
def test_it_can_sort_by_column_index(self):
|
|
925
994
|
"""Responds to order:opposing_element sort-by-column-index."""
|
|
926
995
|
transforms = {
|
|
@@ -949,7 +1018,62 @@ class Test_Slice:
|
|
|
949
1018
|
actual = np.round(slice_.column_index, 1).tolist()
|
|
950
1019
|
assert expected == actual, "\n%s\n\n%s" % (expected, actual)
|
|
951
1020
|
|
|
952
|
-
def
|
|
1021
|
+
def test_it_cat_sort_columns_by_column_percent(self):
|
|
1022
|
+
transforms = {
|
|
1023
|
+
"columns_dimension": {
|
|
1024
|
+
"order": {
|
|
1025
|
+
"type": "opposing_element",
|
|
1026
|
+
"element_id": 1,
|
|
1027
|
+
"measure": "count_unweighted",
|
|
1028
|
+
"direction": "ascending",
|
|
1029
|
+
"fixed": {"top": [5]}, # Never col will be the first one
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
slice_ = _Slice(Cube(CR.CAT_4_X_CAT_5), 0, transforms, None, 0)
|
|
1034
|
+
expected_slice_repr = """
|
|
1035
|
+
_Slice(name='Support', dimension_types='CAT x CAT')
|
|
1036
|
+
Showing: COUNT
|
|
1037
|
+
Never Widowed Divorced As married Married
|
|
1038
|
+
---------- ------- --------- ---------- ------------ ---------
|
|
1039
|
+
Plenty 7 0 3 21 46
|
|
1040
|
+
Enough 29 1 13 55 127
|
|
1041
|
+
Not enough 47 1 41 17 253
|
|
1042
|
+
N/A 26 4 19 80 247
|
|
1043
|
+
Available measures: [<CUBE_MEASURE.COUNT: 'count'>]
|
|
1044
|
+
"""
|
|
1045
|
+
assert slice_.__repr__() == dedent(expected_slice_repr).strip()
|
|
1046
|
+
|
|
1047
|
+
def test_it_can_compute_a_column_sort_by_insertion_values(self):
|
|
1048
|
+
transforms = {
|
|
1049
|
+
"columns_dimension": {
|
|
1050
|
+
"order": {
|
|
1051
|
+
"type": "opposing_insertion",
|
|
1052
|
+
"insertion_id": 2,
|
|
1053
|
+
"measure": "count_unweighted",
|
|
1054
|
+
"direction": "ascending",
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
slice_ = _Slice(Cube(CR.CAT_HS_X_CAT_HS), 0, transforms, None, 0)
|
|
1059
|
+
expected_slice_repr = """
|
|
1060
|
+
_Slice(name='Pasta Shape', dimension_types='CAT x CAT')
|
|
1061
|
+
Showing: COUNT
|
|
1062
|
+
Bravo Alpha Delta Charlie Last 2
|
|
1063
|
+
-------- ------- ------- ------- --------- --------
|
|
1064
|
+
Alice 45 33 21 27 48
|
|
1065
|
+
Bertha 218 158 105 132 237
|
|
1066
|
+
Top 2 263 191 126 159 285
|
|
1067
|
+
Charlie 102 66 82 60 142
|
|
1068
|
+
David 70 93 190 47 237
|
|
1069
|
+
Ernie 128 143 150 312 462
|
|
1070
|
+
Bottom 2 198 236 340 359 699
|
|
1071
|
+
Available measures: [<CUBE_MEASURE.COUNT: 'count'>]
|
|
1072
|
+
"""
|
|
1073
|
+
assert slice_.__repr__() == dedent(expected_slice_repr).strip()
|
|
1074
|
+
assert slice_.column_order().tolist() == [1, 0, 3, 2, -1]
|
|
1075
|
+
|
|
1076
|
+
def test_it_can_sort_rows_by_column_percent(self):
|
|
953
1077
|
"""Responds to order:opposing_element sort-by-value.
|
|
954
1078
|
|
|
955
1079
|
So far, this is limited to column-percents (column-proportions) measure, but
|
|
@@ -981,7 +1105,7 @@ class Test_Slice:
|
|
|
981
1105
|
actual = np.round(slice_.column_percentages, 1).tolist()
|
|
982
1106
|
assert expected == actual, "\n%s\n\n%s" % (expected, actual)
|
|
983
1107
|
|
|
984
|
-
def
|
|
1108
|
+
def test_it_can_sort_rows_by_labels(self):
|
|
985
1109
|
"""Responds to order:label sort-by-label."""
|
|
986
1110
|
transforms = {
|
|
987
1111
|
"rows_dimension": {
|
|
@@ -1016,7 +1140,7 @@ class Test_Slice:
|
|
|
1016
1140
|
[2.45356177, 2.11838791, 2.0, 1.97, 1.74213625, np.nan], nan_ok=True
|
|
1017
1141
|
)
|
|
1018
1142
|
|
|
1019
|
-
def
|
|
1143
|
+
def test_it_can_fix_row_order_of_subvars_identified_by_bogus_id(self):
|
|
1020
1144
|
transforms = {
|
|
1021
1145
|
"rows_dimension": {
|
|
1022
1146
|
"order": {
|
|
@@ -1033,6 +1157,23 @@ class Test_Slice:
|
|
|
1033
1157
|
actual = slice_.row_labels.tolist()
|
|
1034
1158
|
assert expected == actual, "\n%s\n\n%s" % (expected, actual)
|
|
1035
1159
|
|
|
1160
|
+
def test_it_can_fix_column_order_of_subvars_identified_by_bogus_id(self):
|
|
1161
|
+
transforms = {
|
|
1162
|
+
"columns_dimension": {
|
|
1163
|
+
"order": {
|
|
1164
|
+
"type": "label",
|
|
1165
|
+
"direction": "descending",
|
|
1166
|
+
# --- Front-end uses idx to refer to MR subvariables
|
|
1167
|
+
"fixed": {"bottom": [0]},
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
slice_ = _Slice(Cube(MRI.CAT_X_MR), 0, transforms, None, 0)
|
|
1172
|
+
|
|
1173
|
+
expected = ["Response #3", "Response #2", "Response #1", "A&B"]
|
|
1174
|
+
actual = slice_.column_labels.tolist()
|
|
1175
|
+
assert expected == actual, "\n%s\n\n%s" % (expected, actual)
|
|
1176
|
+
|
|
1036
1177
|
@pytest.mark.parametrize(
|
|
1037
1178
|
"id",
|
|
1038
1179
|
(
|
|
@@ -1761,7 +1761,7 @@ class Test_BaseOrderHelper:
|
|
|
1761
1761
|
}
|
|
1762
1762
|
slice_ = _Slice(Cube(fixture), 0, transforms, None, 0)
|
|
1763
1763
|
column_display_order = _BaseOrderHelper.column_display_order(
|
|
1764
|
-
slice_._dimensions, slice_._measures
|
|
1764
|
+
slice_._dimensions, slice_._measures, None
|
|
1765
1765
|
)
|
|
1766
1766
|
|
|
1767
1767
|
assert column_display_order.tolist() == expected_value
|
|
@@ -1875,7 +1875,6 @@ class Test_SortRowsByInsertedColumnHelper:
|
|
|
1875
1875
|
}
|
|
1876
1876
|
}
|
|
1877
1877
|
slice_ = _Slice(Cube(fixture), 0, transforms, None, 0)
|
|
1878
|
-
|
|
1879
1878
|
assert slice_.row_order().tolist() == expected_value
|
|
1880
1879
|
|
|
1881
1880
|
def test_but_it_fallback_to_payload_order_when_sort_by_value_is_not_supported(self):
|