cr.cube 3.3.2__tar.gz → 3.3.3__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.3.2 → cr_cube-3.3.3}/HISTORY.md +28 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/PKG-INFO +12 -29
- {cr_cube-3.3.2 → cr_cube-3.3.3}/README.md +11 -28
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/__init__.py +1 -1
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/cube.py +12 -4
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/cubepart.py +150 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/enums.py +1 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/matrix/cubemeasure.py +11 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/matrix/measure.py +125 -8
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/stripe/cubemeasure.py +10 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/stripe/measure.py +67 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr_cube.egg-info/PKG-INFO +12 -29
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr_cube.egg-info/SOURCES.txt +2 -0
- cr_cube-3.3.3/tests/fixtures/ca-cat-x-ca-subvar-user-missing.json +256 -0
- cr_cube-3.3.3/tests/fixtures/cat-user-missing.json +152 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/integration/test_cubepart.py +112 -1
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/matrix/test_measure.py +261 -6
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/stripe/test_cubemeasure.py +18 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/stripe/test_measure.py +91 -1
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/test_cubepart.py +96 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/.coveragerc +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/.flake8 +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/.pre-commit-config.yaml +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/.readthedocs.yaml +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/LICENSE +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/MANIFEST.in +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/Makefile +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/docs/Makefile +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/docs/source/Makefile +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/docs/source/conf.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/docs/source/crunch_logo.png +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/docs/source/cube.rst +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/docs/source/cubepart.rst +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/docs/source/dimension.rst +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/docs/source/index.rst +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/docs/source/quickstart.rst +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/requirements-rtd.txt +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/setup.cfg +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/setup.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/__init__.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/collator.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/dimension.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/matrix/__init__.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/matrix/assembler.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/matrix/subtotals.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/measures/__init__.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/measures/pairwise_significance.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/min_base_size_mask.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/scalar.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/smoothing.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/stripe/__init__.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/stripe/assembler.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/stripe/insertion.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr/cube/util.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr_cube.egg-info/dependency_links.txt +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr_cube.egg-info/namespace_packages.txt +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr_cube.egg-info/requires.txt +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr_cube.egg-info/top_level.txt +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/src/cr_cube.egg-info/zip-safe +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/__init__.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/admit-x-dept-unweighted-col-prop-moe.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/ca-subvar-ca-cat-x-cat-date-scale-means-w2.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/ca-subvar-x-ca-cat-cat-date-smoothed-col-idx-w3.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/ca-subvar-x-ca-cat-cat-date-smoothed-col-pct-w3.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/ca-subvar-x-ca-cat-hs-pw-pvals.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/ca-subvar-x-ca-cat-hs-pw-tstats.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/ca-x-cat-hs-explicit-order.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/ca-x-mr-explicit-order.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-hs-subdiff-x-cat-pw-pvals.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-hs-subdiff-x-cat-pw-tstats.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-hs-x-cat-date-smoothed-col-idx-w3.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-hs-x-cat-date-smoothed-col-pct-w3.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-hs-x-mr-col-moe.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-hs-x-mr-col-stddev.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-hs-x-mr-col-stderr.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-hs-x-mr-column-proportions.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-hs-x-mr-columns-margin-proportions.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-hs-x-mr-pvals.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-hs-x-mr-pw-idxs.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-hs-x-mr-row-margin-proportions.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-hs-x-mr-row-proportions.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-hs-x-mr-tbl-stddev.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-hs-x-mr-tbl-stderr.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-hs-x-mr-zscores.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-col-idx-explicit-order.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-col-props-moe.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-date-smoothed-col-pct-w1.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-date-smoothed-scale-means-w2.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-date-wgtd-smoothed-col-idx-w4.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-date-wgtd-smoothed-col-pct-w4.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-explicit-order.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-hs-pw-idxs-alt.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-hs-pw-idxs.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-hs-pw-pvals.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-hs-pw-tstats.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-hs-scale-mean-pw-idxs-alt.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-hs-scale-mean-pw-idxs.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-hs-scale-means-pw-pvals.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-hs-scale-means-pw-tstats.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-population-counts-moe.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-population-counts.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-pruning-hs-col-prop-moe.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-pruning-hs-table-prop-moe.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-pw-idxs-recip.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-pw-idxs.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-pw-pvals.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-pw-tstats.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-scale-mean-pw-idxs-alt.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-scale-mean-pw-idxs.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-ucounts-explicit-order.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-wgtd-pw-indices.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-wgtd-pw-pvals.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-wgtd-pw-tstats.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-cat-zscores-explicit-order.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-mr-explicit-order.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-mr-pw-idxs.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-mr-scale-mean-pw-idxs-alt.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-mr-scale-mean-pw-idxs.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-mr-x-cat-date-smoothed-col-idx-w3.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat-x-mr-x-cat-date-smoothed-col-pct-w3.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat_x_cat_hirotsu_chi_squared.txt +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat_x_cat_hirotsu_pvals.txt +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/cat_x_cat_with_hs_hirotsu_pvals.txt +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/col-per-moe-cat-x-cat-hs-2rows-1col.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/col-std-dev-cat-x-cat-hs-2rows-1col.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/col-std-err-cat-x-cat-hs-2rows-1col.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/datetime-x-cat-date-smoothed-col-idx-w3.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/datetime-x-cat-date-smoothed-col-pct-w3.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/econ-gender-x-ideology-weighted-col-prop-moe.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/econ-gender-x-ideology-weighted-row-prop-moe.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/econ-gender-x-ideology-weighted-row-std-dev.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/econ-gender-x-ideology-weighted-table-prop-moe.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-date-smoothed-col-idx-w3.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-date-smoothed-col-pct-w3.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-explicit-order.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-hs-col-moe.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-hs-col-stddev.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-hs-col-stderr.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-hs-column-proportions.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-hs-columns-margin-proportions.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-hs-explicit-order.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-hs-pvals.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-hs-pw-idxs.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-hs-row-margin-proportions.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-hs-row-proportions.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-hs-tbl-stddev.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-hs-tbl-stderr.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-hs-zscores.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-pw-idxs-alt.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-pw-idxs.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-weighted-col-moe.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-weighted-col-std-dev.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-weighted-col-std-err.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-weighted-table-moe.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-weighted-table-std-dev.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-weighted-table-std-err.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-cat-weighted-zscores.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-mr-column-proportions.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-mr-columns-margin-proportions.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-mr-explicit-order.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-mr-pw-idxs.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-mr-pw-pvals.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-mr-pw-tstats.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-mr-row-margin-proportions.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr-x-mr-row-proportions.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr_x_cat_chi_squared_rows.txt +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/mr_x_cat_pairwise_pvals.txt +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/num-arr-means-grouped-by-cat-hs-p-vals-col-7.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/num-arr-means-grouped-by-cat-hs-t-stats-col-7.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/num-arr-means-grouped-by-cat-p-vals-col-4.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/num-arr-means-grouped-by-cat-t-stats-col-4.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/num-array-means-grouped-by-cat-date-smoothed.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/numeric-x-cat-date-smoothed-col-idx-w3.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/numeric-x-cat-date-smoothed-col-pct-w3.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/txt-x-cat-date-smoothed-col-idx-w3.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/expectations/txt-x-cat-date-smoothed-col-pct-w3.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/__init__.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/admit-x-dept-unweighted.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/admit-x-gender-weighted.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/age-x-accrpipe.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/ca-as-0th.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/ca-cat-x-ca-subvar.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/ca-cat-x-mr-x-ca-subvar-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/ca-single-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/ca-subvar-hs-x-mr-x-ca-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/ca-subvar-hs-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/ca-subvar-x-ca-cat-empties.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/ca-subvar-x-ca-cat-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/ca-subvar-x-ca-cat-mean.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/ca-subvar-x-ca-cat-x-cat-date.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/ca-subvar-x-ca-cat-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/ca-x-cat-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/ca-x-mr-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/ca-x-mr-weighted-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/ca-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/ca-x-single-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-4-x-cat-4.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-4-x-cat-5.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-date-mean.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-date-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-date.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-hs-mt-x-cat-hs-mt.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-hs-mt.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-hs-subdiff-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-hs-x-cat-date.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-hs-x-cat-hs-empties.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-hs-x-cat-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-hs-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-hs-x-compare-groups.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-hs-x-mr-wgtd.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-hs-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-mean.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-means-and-counts.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-means-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-median.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-stddev.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-subtot-order.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-sum-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-sum.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-cat-all-missing-row-elements.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-cat-date-wgtd.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-cat-date.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-cat-filt-complete.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-cat-filt.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-cat-german-weighted.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-cat-hs-2rows-1col.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-cat-hs-missing.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-cat-hs-total-bottom.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-cat-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-cat-mean-subtot.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-cat-mean-wgtd.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-cat-weighted-ttests.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-cat-wgtd.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-cat-with-empty-cols.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-datetime.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-items-x-cats-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-logical.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-mr-2.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-mr-pruned-col.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-mr-pruned-row-col.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-mr-pruned-row.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-mr-sentry.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-mr-stddev.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-mr-subvar-means.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-mr-unicode-sv-alias.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-mr-weighted-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-mr-x-cat-date.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-mr-x-cat-missing.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-mr-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-mr-x-mr-empty-cols.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-mr-x-mr-pruned-rows.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-mr-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-num-hs-prune.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat-x-num-x-datetime.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/date.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/datetime-x-cat-date.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/deck-with-mean.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/dichotomized-numeric-mean.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/econ-blame-with-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/econ-blame-x-ideology-col-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/econ-blame-x-ideology-row-and-col-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/econ-blame-x-ideology-row-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/econ-gender-x-ideology-weighted.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/econ-mean-age-blame-x-gender.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/econ-mean-no-dims.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/econ-nodata-no-dims.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/econ-us-problem-x-bigger-problem.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/food-group-x-shape-of-pasta-2rows-insertion.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/food-group-x-shape-pasta-2rows1col-insertion.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/fruit-hs-top-bottom.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/fruit-x-pets-array-pets-first.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/fruit-x-pets-array-subvars-first.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/fruit-x-pets-array.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/fruit-x-pets-hs-top-bottom.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/fruit-x-pets.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/full-cube.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/gender-party-race.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/gender-x-weight.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/letters-x-pets-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/logical-univariate.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mean-cat-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/means-3d.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/means-cat-hs-x-cat-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/means-cat-x-cat-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/means-cat-x-mr-2.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/means-cat-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/means-mr-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/median-cat-x-cat-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/median-cat-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/median-mr-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/missing-cat-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-1-x-mr-3.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-mean-filt-wgtd.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-mean-weighted.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-mean.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-median.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-stddev.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-sum.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-wgtd.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-ca-cat-x-ca-subvar.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-ca-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-cat-2.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-cat-date.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-cat-hs-mt.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-cat-mean-weighted.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-cat-mean.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-cat-profiles-stats-weighted.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-cat-pruned-col.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-cat-pruned-row-col.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-cat-pruned-row.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-cat-with-means.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-cat-x-mr-prune.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-cat-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-compare-groups.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-mr-2.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-mr-index-table.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-mr-mean-weighted.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-mr-mean.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-mr-means.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-mr-median.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-mr-selected-categories.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-mr-single-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-mr-sum.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-mr-with-pruning.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr-x-single-wave.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr_insertions/cat-hs-top-btm.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr_insertions/cat-x-mr-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr_insertions/cat-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr_insertions/mr-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr_insertions/mr-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr_insertions/scorecard.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/mr_insertions/univariate-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/not-mr-cats.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/nssat-mr-x-3vl.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/nssat-mr-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/num-binned.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/num-ranges.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/num-x-num-empty.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/num.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric-measures-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric-x-cat-date.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-cat-date.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-cat-hs-weighted.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-cat-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-cat-weighted.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-date.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-means-no-grouping-weighted.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-means-no-grouping.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-means-scale-measures.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-means-x-mr-weighted.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-means-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-median-grouped-by-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-median-no-grouping.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-median-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-multi-numeric-measures-grouped-by-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-multi-numeric-measures-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-stddev-grouped-by-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-stddev-no-grouping.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-stddev-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-sum-grouped-by-cat-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-sum-grouped-by-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-sum-no-grouping.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-sum-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/numeric_arrays/num-arr-sums-with-nan-values.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/om-sgp8334215-vn-2019-sep-19-strand.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/om-sgp8334215-vn-2019-sep-19.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/overlaps/ca-sub-x-ca-cat-x-mr-sub-x-mr-sel.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/overlaps/cat-hs-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/overlaps/cat-simple-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/overlaps/cat-st-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/overlaps/cat-x-mr-gender-x-all-pets-owned.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/overlaps/cat-x-mr-realistic-example.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/overlaps/cat-x-mr-sub-x-mr-sel.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/overlaps/mr-single-subvar-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/overlaps/mr-x-mr-realistic-example.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/overlaps/mr-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/pairwise-hirotsu-illness-x-occupation-plain-weights.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/pairwise-hirotsu-illness-x-occupation-square-weights.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/pairwise-hirotsu-illness-x-occupation-with-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/pairwise-hirotsu-illness-x-occupation.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/pairwise-hirotsu-occupation-x-illness.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/pets-array-cat-first.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/pets-array-subvar-first.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/pets-array-x-pets.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/pets-array.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/pets-x-fruit-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/pets-x-fruit.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/pets-x-pets-array.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/pets-x-pets.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/profiles-percents.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/prompted-awareness.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scale-with-null-values.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scale_means/bolshevik-hair.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scale_means/ca-cat-x-items.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scale_means/ca-items-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scale_means/ca-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scale_means/cat-nps-numval-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scale_means/cat-single-element-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scale_means/cat-x-ca-cat-x-items.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scale_means/cat-x-cat-sm-margin.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scale_means/cat-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scale_means/cat-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scale_means/mr-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scale_means/univariate-ca-subvar.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scale_means/univariate-cat-with-all-null-numeric-value.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scale_means/univariate-cat-with-null-numeric-value.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scale_means/univariate-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/scorecard.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/selected-3way-2-filledmissing.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/selected-3way-filledmissing.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/simple-ca-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/simple-cat-array.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/simple-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/single-col-margin-not-iterable.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/squared-weights-cat-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/squared-weights.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/stats-test.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/sum-cat-x-mr.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/sum-mr-x-cat.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/test-dashboard-fixture.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/text.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/transforms/test-dashboard-transform-no-ordering.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/transforms/test-dashboard-transform-single-el-visible.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/txt-x-cat-date.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/univ-mr-with-hs.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/univariate-categorical.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/fixtures/xyz-simple-alltypes.json +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/integration/__init__.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/integration/test_collator.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/integration/test_cube.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/integration/test_dimension.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/integration/test_headers_and_subtotals.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/integration/test_index_table.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/integration/test_matrix.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/integration/test_multiple_response.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/integration/test_numeric_array.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/integration/test_pairwise_significance.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/integration/test_scale_additional_measures.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/integration/test_scale_means.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/integration/test_smoothing.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/integration/test_stripe.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/__init__.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/matrix/__init__.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/matrix/test_assembler.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/matrix/test_cubemeasure.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/matrix/test_subtotals.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/stripe/__init__.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/stripe/test_assembler.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/stripe/test_insertion.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/test_collator.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/test_cube.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/test_dimension.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/test_enum.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/test_scalar.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/test_smoothing.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unit/test_util.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/unitutil.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tests/util.py +0 -0
- {cr_cube-3.3.2 → cr_cube-3.3.3}/tox.ini +0 -0
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# History of Changes
|
|
2
2
|
|
|
3
|
+
### 3.1.4
|
|
4
|
+
|
|
5
|
+
- Sort column by opposing row
|
|
6
|
+
|
|
7
|
+
### 3.1.3
|
|
8
|
+
|
|
9
|
+
- Bug fix for _Strand.table_percentages
|
|
10
|
+
|
|
11
|
+
### 3.1.2
|
|
12
|
+
|
|
13
|
+
- Bug fix for scale mean diff rows and cols
|
|
14
|
+
|
|
15
|
+
### 3.1.1
|
|
16
|
+
|
|
17
|
+
- Bug fix for subtotal diff (wave difference) for categorical date dimensions
|
|
18
|
+
|
|
19
|
+
### 3.1.0
|
|
20
|
+
|
|
21
|
+
- Subtotal diff (wave difference) for categorical date dimensions
|
|
22
|
+
|
|
23
|
+
### 3.0.45
|
|
24
|
+
|
|
25
|
+
- Enumerator refactoring
|
|
26
|
+
|
|
27
|
+
### 3.0.44
|
|
28
|
+
|
|
29
|
+
- Bug fix median measure for exporter
|
|
30
|
+
|
|
3
31
|
### 3.0.43
|
|
4
32
|
|
|
5
33
|
- Median measure
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cr_cube
|
|
3
|
-
Version: 3.3.
|
|
3
|
+
Version: 3.3.3
|
|
4
4
|
Summary: Crunch.io Cube library
|
|
5
5
|
Home-page: https://github.com/Crunch-io/crunch-cube/
|
|
6
6
|
Author: Crunch.io
|
|
@@ -119,6 +119,17 @@ Please visit <https://crunch-cube.readthedocs.io/en/latest> for the API referenc
|
|
|
119
119
|
|
|
120
120
|
## Changes
|
|
121
121
|
|
|
122
|
+
### 3.3.3
|
|
123
|
+
- Add information about missing values to partitions:
|
|
124
|
+
- `_Nub`: `.table_missing`
|
|
125
|
+
- `_Strand`: `.table_missing`, `.disaggregated_missing_unweighted_counts`,
|
|
126
|
+
`.disaggregated_missing_labels`, & `.disaggregated_missing_element_ids`
|
|
127
|
+
- `_Slice`: `.rows_disaggregated_missing_unweighted_counts`,
|
|
128
|
+
`.rows_disaggregated_missing_labels`, `.rows_disaggregated_missing_element_ids`
|
|
129
|
+
`.columns_disaggregated_missing_unweighted_counts`,
|
|
130
|
+
`.columns_disaggregated_missing_labels`, &
|
|
131
|
+
`.columns_disaggregated_missing_element_ids`
|
|
132
|
+
|
|
122
133
|
### 3.3.2
|
|
123
134
|
|
|
124
135
|
- Bug fix column numeric ranges for _Slice
|
|
@@ -140,32 +151,4 @@ Please visit <https://crunch-cube.readthedocs.io/en/latest> for the API referenc
|
|
|
140
151
|
|
|
141
152
|
- Add audience ratio measure
|
|
142
153
|
|
|
143
|
-
### 3.1.4
|
|
144
|
-
|
|
145
|
-
- Sort column by opposing row
|
|
146
|
-
|
|
147
|
-
### 3.1.3
|
|
148
|
-
|
|
149
|
-
- Bug fix for _Strand.table_percentages
|
|
150
|
-
|
|
151
|
-
### 3.1.2
|
|
152
|
-
|
|
153
|
-
- Bug fix for scale mean diff rows and cols
|
|
154
|
-
|
|
155
|
-
### 3.1.1
|
|
156
|
-
|
|
157
|
-
- Bug fix for subtotal diff (wave difference) for categorical date dimensions
|
|
158
|
-
|
|
159
|
-
### 3.1.0
|
|
160
|
-
|
|
161
|
-
- Subtotal diff (wave difference) for categorical date dimensions
|
|
162
|
-
|
|
163
|
-
### 3.0.45
|
|
164
|
-
|
|
165
|
-
- Enumerator refactoring
|
|
166
|
-
|
|
167
|
-
### 3.0.44
|
|
168
|
-
|
|
169
|
-
- Bug fix median measure for exporter
|
|
170
|
-
|
|
171
154
|
For a complete list of changes see [history](https://github.com/Crunch-io/crunch-cube/blob/master/HISTORY.md).
|
|
@@ -88,6 +88,17 @@ Please visit <https://crunch-cube.readthedocs.io/en/latest> for the API referenc
|
|
|
88
88
|
|
|
89
89
|
## Changes
|
|
90
90
|
|
|
91
|
+
### 3.3.3
|
|
92
|
+
- Add information about missing values to partitions:
|
|
93
|
+
- `_Nub`: `.table_missing`
|
|
94
|
+
- `_Strand`: `.table_missing`, `.disaggregated_missing_unweighted_counts`,
|
|
95
|
+
`.disaggregated_missing_labels`, & `.disaggregated_missing_element_ids`
|
|
96
|
+
- `_Slice`: `.rows_disaggregated_missing_unweighted_counts`,
|
|
97
|
+
`.rows_disaggregated_missing_labels`, `.rows_disaggregated_missing_element_ids`
|
|
98
|
+
`.columns_disaggregated_missing_unweighted_counts`,
|
|
99
|
+
`.columns_disaggregated_missing_labels`, &
|
|
100
|
+
`.columns_disaggregated_missing_element_ids`
|
|
101
|
+
|
|
91
102
|
### 3.3.2
|
|
92
103
|
|
|
93
104
|
- Bug fix column numeric ranges for _Slice
|
|
@@ -109,32 +120,4 @@ Please visit <https://crunch-cube.readthedocs.io/en/latest> for the API referenc
|
|
|
109
120
|
|
|
110
121
|
- Add audience ratio measure
|
|
111
122
|
|
|
112
|
-
### 3.1.4
|
|
113
|
-
|
|
114
|
-
- Sort column by opposing row
|
|
115
|
-
|
|
116
|
-
### 3.1.3
|
|
117
|
-
|
|
118
|
-
- Bug fix for _Strand.table_percentages
|
|
119
|
-
|
|
120
|
-
### 3.1.2
|
|
121
|
-
|
|
122
|
-
- Bug fix for scale mean diff rows and cols
|
|
123
|
-
|
|
124
|
-
### 3.1.1
|
|
125
|
-
|
|
126
|
-
- Bug fix for subtotal diff (wave difference) for categorical date dimensions
|
|
127
|
-
|
|
128
|
-
### 3.1.0
|
|
129
|
-
|
|
130
|
-
- Subtotal diff (wave difference) for categorical date dimensions
|
|
131
|
-
|
|
132
|
-
### 3.0.45
|
|
133
|
-
|
|
134
|
-
- Enumerator refactoring
|
|
135
|
-
|
|
136
|
-
### 3.0.44
|
|
137
|
-
|
|
138
|
-
- Bug fix median measure for exporter
|
|
139
|
-
|
|
140
123
|
For a complete list of changes see [history](https://github.com/Crunch-io/crunch-cube/blob/master/HISTORY.md).
|
|
@@ -549,12 +549,20 @@ class Cube:
|
|
|
549
549
|
In case of presence of valid counts in the cube response the counts are replaced
|
|
550
550
|
with the valid counts measure.
|
|
551
551
|
"""
|
|
552
|
-
|
|
553
|
-
|
|
552
|
+
return self.unweighted_counts_with_missings[self._valid_idxs]
|
|
553
|
+
|
|
554
|
+
@lazyproperty
|
|
555
|
+
def unweighted_counts_with_missings(self) -> np.ndarray:
|
|
556
|
+
"""ndarray of unweighted or valid counts including missing values.
|
|
557
|
+
|
|
558
|
+
The difference from .unweighted_counts is that this property includes values
|
|
559
|
+
for missing categories.
|
|
560
|
+
"""
|
|
561
|
+
return (
|
|
562
|
+
self._measures.unweighted_valid_counts.raw_cube_array
|
|
554
563
|
if self._measures.unweighted_valid_counts is not None
|
|
555
|
-
else self._measures.unweighted_counts
|
|
564
|
+
else self._measures.unweighted_counts.raw_cube_array
|
|
556
565
|
)
|
|
557
|
-
return unweighted_counts.raw_cube_array[self._valid_idxs]
|
|
558
566
|
|
|
559
567
|
@lazyproperty
|
|
560
568
|
def unweighted_valid_counts(self) -> Optional[np.ndarray]:
|
|
@@ -462,6 +462,51 @@ class _Slice(CubePartition):
|
|
|
462
462
|
"""
|
|
463
463
|
return self._dimensions[1].name
|
|
464
464
|
|
|
465
|
+
@lazyproperty
|
|
466
|
+
def columns_disaggregated_missing_element_ids(self):
|
|
467
|
+
"""Optional tuple of element ids of disaggregated missing elements
|
|
468
|
+
|
|
469
|
+
The disaggregated missings are only available on slices with CAT dimensions.
|
|
470
|
+
The tuple's shape is not related to the shape of actual categories, it depends
|
|
471
|
+
on how many missing categories are defined (generally there's a system missing
|
|
472
|
+
and possibly a handful of missing categories like "Refused").
|
|
473
|
+
"""
|
|
474
|
+
return (
|
|
475
|
+
self._measures.columns_disaggregated_missing_unweighted_counts.element_ids
|
|
476
|
+
)
|
|
477
|
+
|
|
478
|
+
@lazyproperty
|
|
479
|
+
def columns_disaggregated_missing_labels(self):
|
|
480
|
+
"""Optional tuple of labels of disaggregated missing elements
|
|
481
|
+
|
|
482
|
+
The disaggregated missings are only available on slices with CAT dimensions.
|
|
483
|
+
The tuple's shape is not related to the shape of actual categories, it depends
|
|
484
|
+
on how many missing categories are defined (generally there's a system missing
|
|
485
|
+
and possibly a handful of missing categories like "Refused").
|
|
486
|
+
"""
|
|
487
|
+
return self._measures.columns_disaggregated_missing_unweighted_counts.labels
|
|
488
|
+
|
|
489
|
+
@lazyproperty
|
|
490
|
+
def columns_missing(self):
|
|
491
|
+
"""1D/2D np.float64 ndarray of unweighted counts of missing for each cell/column
|
|
492
|
+
|
|
493
|
+
This is the complement to `.columns_base`.
|
|
494
|
+
"""
|
|
495
|
+
return self._cube.n_responses - self.columns_base
|
|
496
|
+
|
|
497
|
+
@lazyproperty
|
|
498
|
+
def columns_disaggregated_missing_unweighted_counts(self):
|
|
499
|
+
"""Optional 1D ndarray of tuples of missing values by type
|
|
500
|
+
|
|
501
|
+
The disaggregated missings are only available on slices with CAT dimensions.
|
|
502
|
+
The tuple's shape is not related to the shape of actual categories, it depends
|
|
503
|
+
on how many missing categories are defined (generally there's a system missing
|
|
504
|
+
and possibly a handful of missing categories like "Refused").
|
|
505
|
+
"""
|
|
506
|
+
return self._assemble_marginal(
|
|
507
|
+
self._measures.columns_disaggregated_missing_unweighted_counts
|
|
508
|
+
)
|
|
509
|
+
|
|
465
510
|
@lazyproperty
|
|
466
511
|
def columns_dimension_type(self):
|
|
467
512
|
"""Member of `cr.cube.enum.DIMENSION_TYPE` describing columns dimension."""
|
|
@@ -1306,6 +1351,41 @@ class _Slice(CubePartition):
|
|
|
1306
1351
|
"""Member of `cr.cube.enum.DIMENSION_TYPE` specifying type of rows dimension."""
|
|
1307
1352
|
return self._rows_dimension.dimension_type
|
|
1308
1353
|
|
|
1354
|
+
@lazyproperty
|
|
1355
|
+
def rows_disaggregated_missing_element_ids(self):
|
|
1356
|
+
"""Optional tuple of element ids of disaggregated missing elements
|
|
1357
|
+
|
|
1358
|
+
The disaggregated missings are only available on slices with CAT dimensions.
|
|
1359
|
+
The tuple's shape is not related to the shape of actual categories, it depends
|
|
1360
|
+
on how many missing categories are defined (generally there's a system missing
|
|
1361
|
+
and possibly a handful of missing categories like "Refused").
|
|
1362
|
+
"""
|
|
1363
|
+
return self._measures.rows_disaggregated_missing_unweighted_counts.element_ids
|
|
1364
|
+
|
|
1365
|
+
@lazyproperty
|
|
1366
|
+
def rows_disaggregated_missing_labels(self):
|
|
1367
|
+
"""Optional tuple of labels of disaggregated missing elements
|
|
1368
|
+
|
|
1369
|
+
The disaggregated missings are only available on slices with CAT dimensions.
|
|
1370
|
+
The tuple's shape is not related to the shape of actual categories, it depends
|
|
1371
|
+
on how many missing categories are defined (generally there's a system missing
|
|
1372
|
+
and possibly a handful of missing categories like "Refused").
|
|
1373
|
+
"""
|
|
1374
|
+
return self._measures.rows_disaggregated_missing_unweighted_counts.labels
|
|
1375
|
+
|
|
1376
|
+
@lazyproperty
|
|
1377
|
+
def rows_disaggregated_missing_unweighted_counts(self):
|
|
1378
|
+
"""Optional 1D ndarray of tuples of missing values by type
|
|
1379
|
+
|
|
1380
|
+
The disaggregated missings are only available on slices with CAT dimensions.
|
|
1381
|
+
The tuple's shape is not related to the shape of actual categories, it depends
|
|
1382
|
+
on how many missing categories are defined (generally there's a system missing
|
|
1383
|
+
and possibly a handful of missing categories like "Refused").
|
|
1384
|
+
"""
|
|
1385
|
+
return self._assemble_marginal(
|
|
1386
|
+
self._measures.rows_disaggregated_missing_unweighted_counts
|
|
1387
|
+
)
|
|
1388
|
+
|
|
1309
1389
|
@lazyproperty
|
|
1310
1390
|
def rows_margin(self):
|
|
1311
1391
|
"""1D or 2D np.float64 ndarray of weighted-N for each column of slice.
|
|
@@ -1351,6 +1431,14 @@ class _Slice(CubePartition):
|
|
|
1351
1431
|
# --- otherwise rows-margin is a vector ---
|
|
1352
1432
|
return self._assemble_marginal(self._measures.rows_table_proportion)
|
|
1353
1433
|
|
|
1434
|
+
@lazyproperty
|
|
1435
|
+
def rows_missing(self):
|
|
1436
|
+
"""1D/2D np.float64 ndarray of unweighted counts of missing for each cell/row
|
|
1437
|
+
|
|
1438
|
+
This is the complement to `.rows_base`.
|
|
1439
|
+
"""
|
|
1440
|
+
return self._cube.n_responses - self.rows_base
|
|
1441
|
+
|
|
1354
1442
|
@lazyproperty
|
|
1355
1443
|
def rows_scale_mean(self):
|
|
1356
1444
|
"""Optional 1D np.float64 ndarray of scale mean for each row.
|
|
@@ -2055,6 +2143,39 @@ class _Strand(CubePartition):
|
|
|
2055
2143
|
diffs = [False] * n_valids + [e.is_difference for e in rows_dim.subtotals]
|
|
2056
2144
|
return tuple(np.where(np.array(diffs)[self._row_order_signed_indexes])[0])
|
|
2057
2145
|
|
|
2146
|
+
@lazyproperty
|
|
2147
|
+
def disaggregated_missing_element_ids(self):
|
|
2148
|
+
"""Optional tuple of element_ids for missing categories
|
|
2149
|
+
|
|
2150
|
+
The disaggregated missings are only available on strands with CAT dimensions.
|
|
2151
|
+
The tuple's shape is not related to the shape of actual categories, it depends
|
|
2152
|
+
on how many missing categories are defined (generally there's a system missing
|
|
2153
|
+
and possibly a handful of missing categories like "Refused").
|
|
2154
|
+
"""
|
|
2155
|
+
return self._measures.disaggregated_missings.element_ids
|
|
2156
|
+
|
|
2157
|
+
@lazyproperty
|
|
2158
|
+
def disaggregated_missing_labels(self):
|
|
2159
|
+
"""Optional tuple of labels for missing categories
|
|
2160
|
+
|
|
2161
|
+
The disaggregated missings are only available on strands with CAT dimensions.
|
|
2162
|
+
The tuple's shape is not related to the shape of actual categories, it depends
|
|
2163
|
+
on how many missing categories are defined (generally there's a system missing
|
|
2164
|
+
and possibly a handful of missing categories like "Refused").
|
|
2165
|
+
"""
|
|
2166
|
+
return self._measures.disaggregated_missings.labels
|
|
2167
|
+
|
|
2168
|
+
@lazyproperty
|
|
2169
|
+
def disaggregated_missing_unweighted_counts(self):
|
|
2170
|
+
"""Optional tuple of unweighted counts for missing categories
|
|
2171
|
+
|
|
2172
|
+
The disaggregated missings are only available on strands with CAT dimensions.
|
|
2173
|
+
The tuple's shape is not related to the shape of actual categories, it depends
|
|
2174
|
+
on how many missing categories are defined (generally there's a system missing
|
|
2175
|
+
and possibly a handful of missing categories like "Refused").
|
|
2176
|
+
"""
|
|
2177
|
+
return self._measures.disaggregated_missings.unweighted_counts
|
|
2178
|
+
|
|
2058
2179
|
@lazyproperty
|
|
2059
2180
|
def inserted_row_idxs(self):
|
|
2060
2181
|
"""tuple of int index of each inserted row in this strand.
|
|
@@ -2445,6 +2566,22 @@ class _Strand(CubePartition):
|
|
|
2445
2566
|
else ""
|
|
2446
2567
|
)
|
|
2447
2568
|
|
|
2569
|
+
@lazyproperty
|
|
2570
|
+
def table_base(self):
|
|
2571
|
+
"""scalar/1D np.float64 ndarray of unweighted-N for table/each cell of strand.
|
|
2572
|
+
|
|
2573
|
+
This array is 1D (a distinct base for each cell) when the rows dimension is MR,
|
|
2574
|
+
because each MR-subvariable has its own unweighted N. This is because not every
|
|
2575
|
+
possible response is necessarily offered to every respondent.
|
|
2576
|
+
|
|
2577
|
+
In all other cases, it is a scalar, containing one value for the whole table.
|
|
2578
|
+
"""
|
|
2579
|
+
if self._measures.unweighted_bases.table_base_scalar is not None:
|
|
2580
|
+
return self._measures.unweighted_bases.table_base_scalar
|
|
2581
|
+
|
|
2582
|
+
# --- otherwise it's the same as the rows base ---
|
|
2583
|
+
return self.rows_base
|
|
2584
|
+
|
|
2448
2585
|
@lazyproperty
|
|
2449
2586
|
def table_base_range(self):
|
|
2450
2587
|
"""[min, max] np.float64 ndarray range of unweighted-N for this stripe.
|
|
@@ -2465,6 +2602,14 @@ class _Strand(CubePartition):
|
|
|
2465
2602
|
"""
|
|
2466
2603
|
return self._measures.weighted_bases.table_margin_range
|
|
2467
2604
|
|
|
2605
|
+
@lazyproperty
|
|
2606
|
+
def table_missing(self):
|
|
2607
|
+
"""scalar/1D np.float64 ndarray of unwtd-N of missings for table/each cell.
|
|
2608
|
+
|
|
2609
|
+
This is the complement to `.table_base`.
|
|
2610
|
+
"""
|
|
2611
|
+
return self._cube.n_responses - self.table_base
|
|
2612
|
+
|
|
2468
2613
|
@lazyproperty
|
|
2469
2614
|
def table_name(self):
|
|
2470
2615
|
"""Optional table name for this strand
|
|
@@ -2646,6 +2791,11 @@ class _Nub(CubePartition):
|
|
|
2646
2791
|
"""Int scalar of the unweighted N of the table."""
|
|
2647
2792
|
return self._scalar.table_base
|
|
2648
2793
|
|
|
2794
|
+
@lazyproperty
|
|
2795
|
+
def table_missing(self):
|
|
2796
|
+
"""Int scalar of the unweighted count of missing of the table."""
|
|
2797
|
+
return self._cube.n_responses - self.table_base
|
|
2798
|
+
|
|
2649
2799
|
@lazyproperty
|
|
2650
2800
|
def table_name(self):
|
|
2651
2801
|
return None
|
|
@@ -65,6 +65,17 @@ class CubeMeasures:
|
|
|
65
65
|
counts, diff_nans, self._cube, self._dimensions, self._slice_idx
|
|
66
66
|
)
|
|
67
67
|
|
|
68
|
+
@lazyproperty
|
|
69
|
+
def unweighted_unconditional_cube_counts(self):
|
|
70
|
+
"""_BaseCubeCounts subclass object for this cube-result with missing."""
|
|
71
|
+
return _BaseCubeCounts.factory(
|
|
72
|
+
self._cube.unweighted_counts_with_missings,
|
|
73
|
+
False,
|
|
74
|
+
self._cube,
|
|
75
|
+
self._dimensions,
|
|
76
|
+
self._slice_idx,
|
|
77
|
+
)
|
|
78
|
+
|
|
68
79
|
@lazyproperty
|
|
69
80
|
def weighted_cube_counts(self):
|
|
70
81
|
"""_BaseWeightedCounts subclass object for this cube-result."""
|
|
@@ -89,6 +89,13 @@ class SecondOrderMeasures:
|
|
|
89
89
|
"""_ColumnWeightedBases measure object for this cube-result."""
|
|
90
90
|
return _ColumnWeightedBases(self._dimensions, self, self._cube_measures)
|
|
91
91
|
|
|
92
|
+
@lazyproperty
|
|
93
|
+
def columns_disaggregated_missing_unweighted_counts(self):
|
|
94
|
+
"""_DisaggregatedMissings object for the columns of this cube-result"""
|
|
95
|
+
return _DisaggregatedMissings(
|
|
96
|
+
self._dimensions, self, self._cube_measures, MO.COLUMNS
|
|
97
|
+
)
|
|
98
|
+
|
|
92
99
|
@lazyproperty
|
|
93
100
|
def columns_table_proportion(self):
|
|
94
101
|
"""_MarginTableProportion for measure object for columns of this cube-result.
|
|
@@ -326,6 +333,13 @@ class SecondOrderMeasures:
|
|
|
326
333
|
"""_RowWeightedBases measure object for this cube-result."""
|
|
327
334
|
return _RowWeightedBases(self._dimensions, self, self._cube_measures)
|
|
328
335
|
|
|
336
|
+
@lazyproperty
|
|
337
|
+
def rows_disaggregated_missing_unweighted_counts(self):
|
|
338
|
+
"""_DisaggregatedMissings object for the rows of this cube-result"""
|
|
339
|
+
return _DisaggregatedMissings(
|
|
340
|
+
self._dimensions, self, self._cube_measures, MO.ROWS
|
|
341
|
+
)
|
|
342
|
+
|
|
329
343
|
@lazyproperty
|
|
330
344
|
def rows_pruning_mask(self):
|
|
331
345
|
"""1D bool ndarray indicating if each matrix row is empty."""
|
|
@@ -2679,11 +2693,25 @@ class _BaseMarginal:
|
|
|
2679
2693
|
return self._second_order_measures.column_comparable_counts.is_defined
|
|
2680
2694
|
return self._second_order_measures.row_comparable_counts.is_defined
|
|
2681
2695
|
|
|
2696
|
+
@lazyproperty
|
|
2697
|
+
def _opposing_dimension(self):
|
|
2698
|
+
"""opposing dimension for this marginal's orientation"""
|
|
2699
|
+
if self.orientation == MO.ROWS:
|
|
2700
|
+
return self._dimensions[1]
|
|
2701
|
+
return self._dimensions[0]
|
|
2702
|
+
|
|
2682
2703
|
@lazyproperty
|
|
2683
2704
|
def _squared_weights_are_defined(self):
|
|
2684
2705
|
"""Bool indicating whether squared weights are defined."""
|
|
2685
2706
|
return self._second_order_measures.column_squared_bases.is_defined
|
|
2686
2707
|
|
|
2708
|
+
@lazyproperty
|
|
2709
|
+
def _subtotal_length(self):
|
|
2710
|
+
"""Int indicating the number of subtotals given the orientation"""
|
|
2711
|
+
if self.orientation == MO.ROWS:
|
|
2712
|
+
return len(self._dimensions[0].subtotals)
|
|
2713
|
+
return len(self._dimensions[1].subtotals)
|
|
2714
|
+
|
|
2687
2715
|
|
|
2688
2716
|
class _BaseScaledCountMarginal(_BaseMarginal):
|
|
2689
2717
|
"""A base class for marginals that depend on the scaled counts."""
|
|
@@ -2698,6 +2726,102 @@ class _BaseScaledCountMarginal(_BaseMarginal):
|
|
|
2698
2726
|
)
|
|
2699
2727
|
|
|
2700
2728
|
|
|
2729
|
+
class _DisaggregatedMissings(_BaseMarginal):
|
|
2730
|
+
"""Provides the disaggregated missing values for a slice
|
|
2731
|
+
|
|
2732
|
+
Disaggregated missing values are the missing values from a categorical
|
|
2733
|
+
dimension that show the counts per missing category (whether it be
|
|
2734
|
+
system missing or user defined ones like "Refused").
|
|
2735
|
+
|
|
2736
|
+
The dimensionality of this is weird. It can be thought of as a marginal,
|
|
2737
|
+
which on a slice would generally mean that it's 1D. However, because there
|
|
2738
|
+
can be more than one type of missing, we gain back a dimension. The shape
|
|
2739
|
+
is therefore not necessarily the same as the shape of measures. For this
|
|
2740
|
+
reason, rather than have 2D ndarrays, it is 1D ndarray storing tuples.
|
|
2741
|
+
"""
|
|
2742
|
+
|
|
2743
|
+
@lazyproperty
|
|
2744
|
+
def blocks(self):
|
|
2745
|
+
"""List of the 2 1D ndarray "blocks" of the disaggregated missing values.
|
|
2746
|
+
|
|
2747
|
+
Because there can be more than 1 type of missing, the ndarrays store tuples
|
|
2748
|
+
of values.
|
|
2749
|
+
"""
|
|
2750
|
+
if not self.is_defined:
|
|
2751
|
+
raise ValueError(
|
|
2752
|
+
f"{self.orientation.value}-disaggregated-missings only defined "
|
|
2753
|
+
"across categorical dimensions."
|
|
2754
|
+
)
|
|
2755
|
+
|
|
2756
|
+
return [self._base_values, self._subtotal_values]
|
|
2757
|
+
|
|
2758
|
+
@lazyproperty
|
|
2759
|
+
def element_ids(self):
|
|
2760
|
+
"""optional tuple of element_ids for the missing values"""
|
|
2761
|
+
if not self.is_defined:
|
|
2762
|
+
return None
|
|
2763
|
+
return tuple(
|
|
2764
|
+
el.element_id for el in self._opposing_dimension.all_elements if el.missing
|
|
2765
|
+
)
|
|
2766
|
+
|
|
2767
|
+
@lazyproperty
|
|
2768
|
+
def is_defined(self):
|
|
2769
|
+
"""True if opposing dimension is categorical"""
|
|
2770
|
+
return self._opposing_dimension.dimension_type in DT.CAT_TYPES
|
|
2771
|
+
|
|
2772
|
+
@lazyproperty
|
|
2773
|
+
def labels(self):
|
|
2774
|
+
"""optional tuple of str labels for the missing values"""
|
|
2775
|
+
if not self.is_defined:
|
|
2776
|
+
return None
|
|
2777
|
+
return tuple(
|
|
2778
|
+
el.label for el in self._opposing_dimension.all_elements if el.missing
|
|
2779
|
+
)
|
|
2780
|
+
|
|
2781
|
+
@lazyproperty
|
|
2782
|
+
def _base_values(self):
|
|
2783
|
+
"""np.array of tuples for the disaggregated missings for base values"""
|
|
2784
|
+
counts = self._cube_measures.unweighted_unconditional_cube_counts.counts
|
|
2785
|
+
# --- Since we're collapsing to 1D anyways, it's easiest to just transpose
|
|
2786
|
+
# --- the counts on columns orientation so the code is more similar between
|
|
2787
|
+
# --- orientations
|
|
2788
|
+
if self.orientation == MO.COLUMNS:
|
|
2789
|
+
counts = counts.transpose()
|
|
2790
|
+
counts = counts[:, self._missing_idxs]
|
|
2791
|
+
return np.array([tuple(row) for row in counts], dtype=self._inner_dtype)
|
|
2792
|
+
|
|
2793
|
+
@lazyproperty
|
|
2794
|
+
def _inner_dtype(self):
|
|
2795
|
+
"""numpy.dtype used for items in the arrays of tuples in blocks"""
|
|
2796
|
+
# --- Note that the string notation for a tuple of length 1 ("d,")
|
|
2797
|
+
# --- does not work on all versions of numpy we support (python 3.8 testrunners)
|
|
2798
|
+
return np.dtype([(f"f{i}", np.float64) for i in range(self._inner_size)])
|
|
2799
|
+
|
|
2800
|
+
@lazyproperty
|
|
2801
|
+
def _inner_size(self):
|
|
2802
|
+
"""int size of the tuples contained in the blocks"""
|
|
2803
|
+
return len(self._missing_idxs)
|
|
2804
|
+
|
|
2805
|
+
@lazyproperty
|
|
2806
|
+
def _missing_idxs(self):
|
|
2807
|
+
"""list of indexes indicating which rows/columns are missing values"""
|
|
2808
|
+
return [
|
|
2809
|
+
idx
|
|
2810
|
+
for idx, el in enumerate(self._opposing_dimension.all_elements)
|
|
2811
|
+
if el.missing
|
|
2812
|
+
]
|
|
2813
|
+
|
|
2814
|
+
@lazyproperty
|
|
2815
|
+
def _subtotal_values(self):
|
|
2816
|
+
"""np.array of tuples for the disaggregated missings for subtotals"""
|
|
2817
|
+
# --- For now, don't bother reimplementing the subtotal logic for disaggregated
|
|
2818
|
+
# --- misings. We aren't currently using them in a place where subtotals
|
|
2819
|
+
# --- are possible, so wait until there is a product need for them
|
|
2820
|
+
# --- Instead, just send NaNs if encountered
|
|
2821
|
+
nan_tuple = (np.nan,) * self._inner_size
|
|
2822
|
+
return np.array([nan_tuple] * self._subtotal_length, dtype=self._inner_dtype)
|
|
2823
|
+
|
|
2824
|
+
|
|
2701
2825
|
class _MarginTableProportion(_BaseMarginal):
|
|
2702
2826
|
"""The 'margin-table-proportion', table proportion of the marginal values
|
|
2703
2827
|
|
|
@@ -2810,7 +2934,7 @@ class _MarginTableBase(_BaseMarginal):
|
|
|
2810
2934
|
# --- Therefore we can just repeat the first value to the shape.
|
|
2811
2935
|
return [
|
|
2812
2936
|
self._base_values,
|
|
2813
|
-
np.repeat([self._base_values[0]], self.
|
|
2937
|
+
np.repeat([self._base_values[0]], self._subtotal_length),
|
|
2814
2938
|
]
|
|
2815
2939
|
|
|
2816
2940
|
@lazyproperty
|
|
@@ -2831,13 +2955,6 @@ class _MarginTableBase(_BaseMarginal):
|
|
|
2831
2955
|
else self._cube_counts.columns_table_base
|
|
2832
2956
|
)
|
|
2833
2957
|
|
|
2834
|
-
@lazyproperty
|
|
2835
|
-
def _subtotal_shape(self):
|
|
2836
|
-
"""Int indicating the number of subtotals given the orientation"""
|
|
2837
|
-
if self.orientation == MO.ROWS:
|
|
2838
|
-
return len(self._dimensions[0].subtotals)
|
|
2839
|
-
return len(self._dimensions[1].subtotals)
|
|
2840
|
-
|
|
2841
2958
|
|
|
2842
2959
|
class _MarginUnweightedBase(_BaseMarginal):
|
|
2843
2960
|
"""The 'margin-unweighted base', a 1D weighted base in the margin
|
|
@@ -53,6 +53,16 @@ class CubeMeasures:
|
|
|
53
53
|
counts, self._rows_dimension, self._ca_as_0th, self._slice_idx
|
|
54
54
|
)
|
|
55
55
|
|
|
56
|
+
@lazyproperty
|
|
57
|
+
def unweighted_unconditional_cube_counts(self):
|
|
58
|
+
"""_BaseCubeCounts for unweighted counts with missing for stripe."""
|
|
59
|
+
return _BaseCubeCounts.factory(
|
|
60
|
+
self._cube.unweighted_counts_with_missings,
|
|
61
|
+
self._rows_dimension,
|
|
62
|
+
self._ca_as_0th,
|
|
63
|
+
self._slice_idx,
|
|
64
|
+
)
|
|
65
|
+
|
|
56
66
|
@lazyproperty
|
|
57
67
|
def weighted_cube_counts(self):
|
|
58
68
|
"""_BaseCubeCounts for weighted subclass object for this stripe."""
|
|
@@ -34,6 +34,11 @@ class StripeMeasures:
|
|
|
34
34
|
self._ca_as_0th = ca_as_0th
|
|
35
35
|
self._slice_idx = slice_idx
|
|
36
36
|
|
|
37
|
+
@lazyproperty
|
|
38
|
+
def disaggregated_missings(self):
|
|
39
|
+
"""_DisaggregatedMissings measure object for this stripe."""
|
|
40
|
+
return _DisaggregatedMissings(self._rows_dimension, self, self._cube_measures)
|
|
41
|
+
|
|
37
42
|
@lazyproperty
|
|
38
43
|
def means(self):
|
|
39
44
|
"""_Means measure object for this stripe."""
|
|
@@ -216,6 +221,61 @@ class _SmoothedMeasure(_BaseSecondOrderMeasure):
|
|
|
216
221
|
return Smoother.factory(self._rows_dimension)
|
|
217
222
|
|
|
218
223
|
|
|
224
|
+
class _DisaggregatedMissings(_BaseSecondOrderMeasure):
|
|
225
|
+
"""Provides the disaggregated missing values for a stripe
|
|
226
|
+
|
|
227
|
+
Disaggregated missing values are the missing values from a categorical
|
|
228
|
+
dimension that show the counts per missing category (whether it be
|
|
229
|
+
system missing or user defined ones like "Refused").
|
|
230
|
+
|
|
231
|
+
The dimensionality of this is weird. It can be thought of as a marginal,
|
|
232
|
+
which on a stripe would generally mean that it's 0D. However, because there
|
|
233
|
+
can be more than one type of missing, we gain back a dimension. The shape
|
|
234
|
+
is therefore not necessarily the same as the shape of measures. For this
|
|
235
|
+
reason, rather than return np.ndarrays values here are tuples.
|
|
236
|
+
"""
|
|
237
|
+
|
|
238
|
+
@lazyproperty
|
|
239
|
+
def labels(self):
|
|
240
|
+
"""Optional tuple with the labels of the missing categories"""
|
|
241
|
+
if not self._is_valid:
|
|
242
|
+
return None
|
|
243
|
+
|
|
244
|
+
return tuple(el.label for el in self._rows_dimension.all_elements if el.missing)
|
|
245
|
+
|
|
246
|
+
@lazyproperty
|
|
247
|
+
def element_ids(self):
|
|
248
|
+
"""optional tuple of element_ids for the missing values"""
|
|
249
|
+
if not self._is_valid:
|
|
250
|
+
return None
|
|
251
|
+
|
|
252
|
+
return tuple(
|
|
253
|
+
el.element_id for el in self._rows_dimension.all_elements if el.missing
|
|
254
|
+
)
|
|
255
|
+
|
|
256
|
+
@lazyproperty
|
|
257
|
+
def unweighted_counts(self):
|
|
258
|
+
"""Optional tuple with the unweighted counts of the missing categories"""
|
|
259
|
+
if not self._is_valid:
|
|
260
|
+
return None
|
|
261
|
+
|
|
262
|
+
missing_mask = [
|
|
263
|
+
idx
|
|
264
|
+
for idx, el in enumerate(self._rows_dimension.all_elements)
|
|
265
|
+
if el.missing
|
|
266
|
+
]
|
|
267
|
+
return tuple(
|
|
268
|
+
self._cube_measures.unweighted_unconditional_cube_counts.counts[
|
|
269
|
+
missing_mask
|
|
270
|
+
]
|
|
271
|
+
)
|
|
272
|
+
|
|
273
|
+
@lazyproperty
|
|
274
|
+
def _is_valid(self):
|
|
275
|
+
"""True if dim is cat and so disaggregated missing values are possible"""
|
|
276
|
+
return self._rows_dimension.dimension_type in DT.CAT_TYPES
|
|
277
|
+
|
|
278
|
+
|
|
219
279
|
class _Means(_BaseSecondOrderMeasure):
|
|
220
280
|
"""Provides the means measure for a stripe.
|
|
221
281
|
|
|
@@ -688,6 +748,13 @@ class _UnweightedBases(_BaseSecondOrderMeasure):
|
|
|
688
748
|
bases = self._unweighted_cube_counts.bases
|
|
689
749
|
return np.array([np.min(bases), np.max(bases)])
|
|
690
750
|
|
|
751
|
+
@lazyproperty
|
|
752
|
+
def table_base_scalar(self):
|
|
753
|
+
"""Optional np.float64 of the base (available across non-array dimensions)"""
|
|
754
|
+
if self._rows_dimension.dimension_type in DT.ARRAY_TYPES:
|
|
755
|
+
return None
|
|
756
|
+
return self._unweighted_cube_counts.bases[0]
|
|
757
|
+
|
|
691
758
|
|
|
692
759
|
class _UnweightedCounts(_BaseSecondOrderMeasure):
|
|
693
760
|
"""Provides the unweighted-counts measure for a stripe."""
|