cr.cube 3.1.4__tar.gz → 3.2.0__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.
Files changed (487) hide show
  1. {cr_cube-3.1.4 → cr_cube-3.2.0}/PKG-INFO +31 -4
  2. {cr_cube-3.1.4 → cr_cube-3.2.0}/README.md +11 -1
  3. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/__init__.py +1 -1
  4. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/cubepart.py +55 -0
  5. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/enums.py +1 -0
  6. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/matrix/assembler.py +19 -27
  7. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/matrix/measure.py +75 -0
  8. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr_cube.egg-info/PKG-INFO +32 -5
  9. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr_cube.egg-info/SOURCES.txt +2 -25
  10. cr_cube-3.2.0/tests/fixtures/cat-hs-x-compare-groups.json +486 -0
  11. cr_cube-3.2.0/tests/fixtures/mr-x-compare-groups.json +1143 -0
  12. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/integration/test_cubepart.py +112 -0
  13. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/matrix/test_assembler.py +2 -0
  14. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/matrix/test_measure.py +53 -0
  15. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/test_cubepart.py +6 -2
  16. {cr_cube-3.1.4 → cr_cube-3.2.0}/tox.ini +5 -9
  17. cr_cube-3.1.4/tests/fixtures/ca-food-groups-x-shape-of-pasta-with-insertions.json +0 -378
  18. cr_cube-3.1.4/tests/fixtures/ca-items-x-ca-cat-x-cat.json +0 -557
  19. cr_cube-3.1.4/tests/fixtures/ca-subdiff.json +0 -330
  20. cr_cube-3.1.4/tests/fixtures/ca-with-nets.json +0 -967
  21. cr_cube-3.1.4/tests/fixtures/ca-x-mr-sig-testing-subtotals.json +0 -1309
  22. cr_cube-3.1.4/tests/fixtures/cat-x-cat-x-cat-wgtd-no-query-weight.json +0 -1043
  23. cr_cube-3.1.4/tests/fixtures/cat-x-cat-x-cat-wgtd.json +0 -1044
  24. cr_cube-3.1.4/tests/fixtures/cat-x-date-hs-prune.json +0 -264
  25. cr_cube-3.1.4/tests/fixtures/countries-x-shapes-of-pasta.json +0 -586
  26. cr_cube-3.1.4/tests/fixtures/direction-of-country-x-education-weighted.json +0 -238
  27. cr_cube-3.1.4/tests/fixtures/edu-fav5.json +0 -522
  28. cr_cube-3.1.4/tests/fixtures/food-groops-x-starttime-x-nordic-countries.json +0 -1202
  29. cr_cube-3.1.4/tests/fixtures/huffpost-actions-x-household.json +0 -851
  30. cr_cube-3.1.4/tests/fixtures/mr-x-cat-both-single-element.json +0 -261
  31. cr_cube-3.1.4/tests/fixtures/mr-x-cat-not-so-simple-alltypes.json +0 -586
  32. cr_cube-3.1.4/tests/fixtures/mr-x-mr-x-cat.json +0 -11802
  33. cr_cube-3.1.4/tests/fixtures/mr-x-other-mr.json +0 -449
  34. cr_cube-3.1.4/tests/fixtures/pairwise-4x4.json +0 -238
  35. cr_cube-3.1.4/tests/fixtures/pairwise-random-3x4.json +0 -190
  36. cr_cube-3.1.4/tests/fixtures/pairwise-with-zero-margin.json +0 -249
  37. cr_cube-3.1.4/tests/fixtures/same-counts-3x4.json +0 -190
  38. cr_cube-3.1.4/tests/fixtures/selected-crosstab-array-first.json +0 -274
  39. cr_cube-3.1.4/tests/fixtures/selected-crosstab-array-last.json +0 -274
  40. cr_cube-3.1.4/tests/fixtures/starttime-x-nordic-countries-x-food-groops.json +0 -1202
  41. cr_cube-3.1.4/tests/fixtures/transforms/generic-transforms-dicts.json +0 -205
  42. {cr_cube-3.1.4 → cr_cube-3.2.0}/.coveragerc +0 -0
  43. {cr_cube-3.1.4 → cr_cube-3.2.0}/.flake8 +0 -0
  44. {cr_cube-3.1.4 → cr_cube-3.2.0}/.pre-commit-config.yaml +0 -0
  45. {cr_cube-3.1.4 → cr_cube-3.2.0}/.readthedocs.yaml +0 -0
  46. {cr_cube-3.1.4 → cr_cube-3.2.0}/HISTORY.md +0 -0
  47. {cr_cube-3.1.4 → cr_cube-3.2.0}/LICENSE +0 -0
  48. {cr_cube-3.1.4 → cr_cube-3.2.0}/MANIFEST.in +0 -0
  49. {cr_cube-3.1.4 → cr_cube-3.2.0}/Makefile +0 -0
  50. {cr_cube-3.1.4 → cr_cube-3.2.0}/docs/Makefile +0 -0
  51. {cr_cube-3.1.4 → cr_cube-3.2.0}/docs/source/Makefile +0 -0
  52. {cr_cube-3.1.4 → cr_cube-3.2.0}/docs/source/conf.py +0 -0
  53. {cr_cube-3.1.4 → cr_cube-3.2.0}/docs/source/crunch_logo.png +0 -0
  54. {cr_cube-3.1.4 → cr_cube-3.2.0}/docs/source/cube.rst +0 -0
  55. {cr_cube-3.1.4 → cr_cube-3.2.0}/docs/source/cubepart.rst +0 -0
  56. {cr_cube-3.1.4 → cr_cube-3.2.0}/docs/source/dimension.rst +0 -0
  57. {cr_cube-3.1.4 → cr_cube-3.2.0}/docs/source/index.rst +0 -0
  58. {cr_cube-3.1.4 → cr_cube-3.2.0}/docs/source/quickstart.rst +0 -0
  59. {cr_cube-3.1.4 → cr_cube-3.2.0}/requirements-rtd.txt +0 -0
  60. {cr_cube-3.1.4 → cr_cube-3.2.0}/setup.cfg +0 -0
  61. {cr_cube-3.1.4 → cr_cube-3.2.0}/setup.py +0 -0
  62. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/__init__.py +0 -0
  63. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/collator.py +0 -0
  64. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/cube.py +0 -0
  65. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/dimension.py +0 -0
  66. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/matrix/__init__.py +0 -0
  67. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/matrix/cubemeasure.py +0 -0
  68. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/matrix/subtotals.py +0 -0
  69. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/measures/__init__.py +0 -0
  70. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/measures/pairwise_significance.py +0 -0
  71. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/min_base_size_mask.py +0 -0
  72. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/scalar.py +0 -0
  73. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/smoothing.py +0 -0
  74. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/stripe/__init__.py +0 -0
  75. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/stripe/assembler.py +0 -0
  76. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/stripe/cubemeasure.py +0 -0
  77. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/stripe/insertion.py +0 -0
  78. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/stripe/measure.py +0 -0
  79. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr/cube/util.py +0 -0
  80. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr_cube.egg-info/dependency_links.txt +0 -0
  81. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr_cube.egg-info/namespace_packages.txt +0 -0
  82. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr_cube.egg-info/requires.txt +0 -0
  83. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr_cube.egg-info/top_level.txt +0 -0
  84. {cr_cube-3.1.4 → cr_cube-3.2.0}/src/cr_cube.egg-info/zip-safe +0 -0
  85. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/__init__.py +0 -0
  86. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/admit-x-dept-unweighted-col-prop-moe.py +0 -0
  87. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/ca-subvar-ca-cat-x-cat-date-scale-means-w2.py +0 -0
  88. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/ca-subvar-x-ca-cat-cat-date-smoothed-col-idx-w3.py +0 -0
  89. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/ca-subvar-x-ca-cat-cat-date-smoothed-col-pct-w3.py +0 -0
  90. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/ca-subvar-x-ca-cat-hs-pw-pvals.py +0 -0
  91. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/ca-subvar-x-ca-cat-hs-pw-tstats.py +0 -0
  92. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/ca-x-cat-hs-explicit-order.py +0 -0
  93. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/ca-x-mr-explicit-order.py +0 -0
  94. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-hs-subdiff-x-cat-pw-pvals.py +0 -0
  95. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-hs-subdiff-x-cat-pw-tstats.py +0 -0
  96. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-hs-x-cat-date-smoothed-col-idx-w3.py +0 -0
  97. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-hs-x-cat-date-smoothed-col-pct-w3.py +0 -0
  98. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-hs-x-mr-col-moe.py +0 -0
  99. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-hs-x-mr-col-stddev.py +0 -0
  100. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-hs-x-mr-col-stderr.py +0 -0
  101. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-hs-x-mr-column-proportions.py +0 -0
  102. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-hs-x-mr-columns-margin-proportions.py +0 -0
  103. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-hs-x-mr-pvals.py +0 -0
  104. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-hs-x-mr-pw-idxs.py +0 -0
  105. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-hs-x-mr-row-margin-proportions.py +0 -0
  106. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-hs-x-mr-row-proportions.py +0 -0
  107. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-hs-x-mr-tbl-stddev.py +0 -0
  108. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-hs-x-mr-tbl-stderr.py +0 -0
  109. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-hs-x-mr-zscores.py +0 -0
  110. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-col-idx-explicit-order.py +0 -0
  111. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-col-props-moe.py +0 -0
  112. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-date-smoothed-col-pct-w1.py +0 -0
  113. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-date-smoothed-scale-means-w2.py +0 -0
  114. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-date-wgtd-smoothed-col-idx-w4.py +0 -0
  115. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-date-wgtd-smoothed-col-pct-w4.py +0 -0
  116. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-explicit-order.py +0 -0
  117. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-hs-pw-idxs-alt.py +0 -0
  118. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-hs-pw-idxs.py +0 -0
  119. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-hs-pw-pvals.py +0 -0
  120. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-hs-pw-tstats.py +0 -0
  121. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-hs-scale-mean-pw-idxs-alt.py +0 -0
  122. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-hs-scale-mean-pw-idxs.py +0 -0
  123. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-hs-scale-means-pw-pvals.py +0 -0
  124. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-hs-scale-means-pw-tstats.py +0 -0
  125. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-population-counts-moe.py +0 -0
  126. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-population-counts.py +0 -0
  127. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-pruning-hs-col-prop-moe.py +0 -0
  128. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-pruning-hs-table-prop-moe.py +0 -0
  129. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-pw-idxs-recip.py +0 -0
  130. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-pw-idxs.py +0 -0
  131. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-pw-pvals.py +0 -0
  132. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-pw-tstats.py +0 -0
  133. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-scale-mean-pw-idxs-alt.py +0 -0
  134. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-scale-mean-pw-idxs.py +0 -0
  135. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-ucounts-explicit-order.py +0 -0
  136. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-wgtd-pw-indices.py +0 -0
  137. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-wgtd-pw-pvals.py +0 -0
  138. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-wgtd-pw-tstats.py +0 -0
  139. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-cat-zscores-explicit-order.py +0 -0
  140. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-mr-explicit-order.py +0 -0
  141. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-mr-pw-idxs.py +0 -0
  142. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-mr-scale-mean-pw-idxs-alt.py +0 -0
  143. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-mr-scale-mean-pw-idxs.py +0 -0
  144. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-mr-x-cat-date-smoothed-col-idx-w3.py +0 -0
  145. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat-x-mr-x-cat-date-smoothed-col-pct-w3.py +0 -0
  146. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat_x_cat_hirotsu_chi_squared.txt +0 -0
  147. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat_x_cat_hirotsu_pvals.txt +0 -0
  148. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/cat_x_cat_with_hs_hirotsu_pvals.txt +0 -0
  149. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/col-per-moe-cat-x-cat-hs-2rows-1col.py +0 -0
  150. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/col-std-dev-cat-x-cat-hs-2rows-1col.py +0 -0
  151. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/col-std-err-cat-x-cat-hs-2rows-1col.py +0 -0
  152. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/datetime-x-cat-date-smoothed-col-idx-w3.py +0 -0
  153. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/datetime-x-cat-date-smoothed-col-pct-w3.py +0 -0
  154. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/econ-gender-x-ideology-weighted-col-prop-moe.py +0 -0
  155. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/econ-gender-x-ideology-weighted-row-prop-moe.py +0 -0
  156. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/econ-gender-x-ideology-weighted-row-std-dev.py +0 -0
  157. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/econ-gender-x-ideology-weighted-table-prop-moe.py +0 -0
  158. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-date-smoothed-col-idx-w3.py +0 -0
  159. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-date-smoothed-col-pct-w3.py +0 -0
  160. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-explicit-order.py +0 -0
  161. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-hs-col-moe.py +0 -0
  162. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-hs-col-stddev.py +0 -0
  163. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-hs-col-stderr.py +0 -0
  164. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-hs-column-proportions.py +0 -0
  165. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-hs-columns-margin-proportions.py +0 -0
  166. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-hs-explicit-order.py +0 -0
  167. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-hs-pvals.py +0 -0
  168. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-hs-pw-idxs.py +0 -0
  169. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-hs-row-margin-proportions.py +0 -0
  170. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-hs-row-proportions.py +0 -0
  171. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-hs-tbl-stddev.py +0 -0
  172. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-hs-tbl-stderr.py +0 -0
  173. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-hs-zscores.py +0 -0
  174. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-pw-idxs-alt.py +0 -0
  175. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-pw-idxs.py +0 -0
  176. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-weighted-col-moe.py +0 -0
  177. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-weighted-col-std-dev.py +0 -0
  178. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-weighted-col-std-err.py +0 -0
  179. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-weighted-table-moe.py +0 -0
  180. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-weighted-table-std-dev.py +0 -0
  181. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-weighted-table-std-err.py +0 -0
  182. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-cat-weighted-zscores.py +0 -0
  183. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-mr-column-proportions.py +0 -0
  184. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-mr-columns-margin-proportions.py +0 -0
  185. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-mr-explicit-order.py +0 -0
  186. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-mr-pw-idxs.py +0 -0
  187. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-mr-pw-pvals.py +0 -0
  188. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-mr-pw-tstats.py +0 -0
  189. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-mr-row-margin-proportions.py +0 -0
  190. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr-x-mr-row-proportions.py +0 -0
  191. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr_x_cat_chi_squared_rows.txt +0 -0
  192. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/mr_x_cat_pairwise_pvals.txt +0 -0
  193. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/num-arr-means-grouped-by-cat-hs-p-vals-col-7.py +0 -0
  194. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/num-arr-means-grouped-by-cat-hs-t-stats-col-7.py +0 -0
  195. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/num-arr-means-grouped-by-cat-p-vals-col-4.py +0 -0
  196. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/num-arr-means-grouped-by-cat-t-stats-col-4.py +0 -0
  197. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/num-array-means-grouped-by-cat-date-smoothed.py +0 -0
  198. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/numeric-x-cat-date-smoothed-col-idx-w3.py +0 -0
  199. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/numeric-x-cat-date-smoothed-col-pct-w3.py +0 -0
  200. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/txt-x-cat-date-smoothed-col-idx-w3.py +0 -0
  201. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/expectations/txt-x-cat-date-smoothed-col-pct-w3.py +0 -0
  202. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/__init__.py +0 -0
  203. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/admit-x-dept-unweighted.json +0 -0
  204. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/admit-x-gender-weighted.json +0 -0
  205. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/age-x-accrpipe.json +0 -0
  206. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/ca-as-0th.json +0 -0
  207. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/ca-cat-x-ca-subvar.json +0 -0
  208. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/ca-cat-x-mr-x-ca-subvar-hs.json +0 -0
  209. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/ca-single-cat.json +0 -0
  210. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/ca-subvar-hs-x-mr-x-ca-cat.json +0 -0
  211. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/ca-subvar-hs-x-mr.json +0 -0
  212. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/ca-subvar-x-ca-cat-empties.json +0 -0
  213. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/ca-subvar-x-ca-cat-hs.json +0 -0
  214. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/ca-subvar-x-ca-cat-mean.json +0 -0
  215. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/ca-subvar-x-ca-cat-x-cat-date.json +0 -0
  216. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/ca-subvar-x-ca-cat-x-mr.json +0 -0
  217. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/ca-x-cat-hs.json +0 -0
  218. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/ca-x-mr-hs.json +0 -0
  219. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/ca-x-mr-weighted-hs.json +0 -0
  220. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/ca-x-mr.json +0 -0
  221. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/ca-x-single-cat.json +0 -0
  222. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-4-x-cat-4.json +0 -0
  223. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-4-x-cat-5.json +0 -0
  224. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-date-mean.json +0 -0
  225. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-date-x-cat.json +0 -0
  226. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-date.json +0 -0
  227. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-hs-mt-x-cat-hs-mt.json +0 -0
  228. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-hs-mt.json +0 -0
  229. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-hs-subdiff-x-cat.json +0 -0
  230. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-hs-x-cat-date.json +0 -0
  231. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-hs-x-cat-hs-empties.json +0 -0
  232. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-hs-x-cat-hs.json +0 -0
  233. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-hs-x-cat.json +0 -0
  234. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-hs-x-mr-wgtd.json +0 -0
  235. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-hs-x-mr.json +0 -0
  236. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-mean.json +0 -0
  237. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-means-and-counts.json +0 -0
  238. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-means-hs.json +0 -0
  239. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-median.json +0 -0
  240. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-stddev.json +0 -0
  241. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-subtot-order.json +0 -0
  242. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-sum-x-mr.json +0 -0
  243. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-sum.json +0 -0
  244. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-cat-all-missing-row-elements.json +0 -0
  245. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-cat-date-wgtd.json +0 -0
  246. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-cat-date.json +0 -0
  247. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-cat-filt-complete.json +0 -0
  248. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-cat-filt.json +0 -0
  249. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-cat-german-weighted.json +0 -0
  250. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-cat-hs-2rows-1col.json +0 -0
  251. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-cat-hs-missing.json +0 -0
  252. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-cat-hs-total-bottom.json +0 -0
  253. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-cat-hs.json +0 -0
  254. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-cat-mean-subtot.json +0 -0
  255. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-cat-mean-wgtd.json +0 -0
  256. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-cat-weighted-ttests.json +0 -0
  257. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-cat-wgtd.json +0 -0
  258. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-cat-with-empty-cols.json +0 -0
  259. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-cat.json +0 -0
  260. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-datetime.json +0 -0
  261. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-items-x-cats-hs.json +0 -0
  262. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-logical.json +0 -0
  263. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-mr-2.json +0 -0
  264. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-mr-pruned-col.json +0 -0
  265. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-mr-pruned-row-col.json +0 -0
  266. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-mr-pruned-row.json +0 -0
  267. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-mr-sentry.json +0 -0
  268. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-mr-stddev.json +0 -0
  269. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-mr-subvar-means.json +0 -0
  270. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-mr-unicode-sv-alias.json +0 -0
  271. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-mr-weighted-hs.json +0 -0
  272. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-mr-x-cat-date.json +0 -0
  273. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-mr-x-cat-missing.json +0 -0
  274. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-mr-x-cat.json +0 -0
  275. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-mr-x-mr-empty-cols.json +0 -0
  276. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-mr-x-mr-pruned-rows.json +0 -0
  277. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-mr-x-mr.json +0 -0
  278. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-mr.json +0 -0
  279. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-num-hs-prune.json +0 -0
  280. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat-x-num-x-datetime.json +0 -0
  281. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/cat.json +0 -0
  282. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/date.json +0 -0
  283. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/datetime-x-cat-date.json +0 -0
  284. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/deck-with-mean.json +0 -0
  285. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/dichotomized-numeric-mean.json +0 -0
  286. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/econ-blame-with-hs.json +0 -0
  287. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/econ-blame-x-ideology-col-hs.json +0 -0
  288. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/econ-blame-x-ideology-row-and-col-hs.json +0 -0
  289. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/econ-blame-x-ideology-row-hs.json +0 -0
  290. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/econ-gender-x-ideology-weighted.json +0 -0
  291. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/econ-mean-age-blame-x-gender.json +0 -0
  292. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/econ-mean-no-dims.json +0 -0
  293. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/econ-nodata-no-dims.json +0 -0
  294. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/econ-us-problem-x-bigger-problem.json +0 -0
  295. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/food-group-x-shape-of-pasta-2rows-insertion.json +0 -0
  296. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/food-group-x-shape-pasta-2rows1col-insertion.json +0 -0
  297. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/fruit-hs-top-bottom.json +0 -0
  298. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/fruit-x-pets-array-pets-first.json +0 -0
  299. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/fruit-x-pets-array-subvars-first.json +0 -0
  300. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/fruit-x-pets-array.json +0 -0
  301. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/fruit-x-pets-hs-top-bottom.json +0 -0
  302. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/fruit-x-pets.json +0 -0
  303. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/full-cube.json +0 -0
  304. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/gender-party-race.json +0 -0
  305. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/gender-x-weight.json +0 -0
  306. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/letters-x-pets-hs.json +0 -0
  307. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/logical-univariate.json +0 -0
  308. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mean-cat-x-cat.json +0 -0
  309. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/means-3d.json +0 -0
  310. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/means-cat-hs-x-cat-hs.json +0 -0
  311. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/means-cat-x-cat-hs.json +0 -0
  312. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/means-cat-x-mr-2.json +0 -0
  313. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/means-cat-x-mr.json +0 -0
  314. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/means-mr-x-cat.json +0 -0
  315. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/median-cat-x-cat-hs.json +0 -0
  316. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/median-cat-x-mr.json +0 -0
  317. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/median-mr-x-cat.json +0 -0
  318. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/missing-cat-hs.json +0 -0
  319. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-1-x-mr-3.json +0 -0
  320. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-mean-filt-wgtd.json +0 -0
  321. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-mean-weighted.json +0 -0
  322. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-mean.json +0 -0
  323. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-median.json +0 -0
  324. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-stddev.json +0 -0
  325. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-sum.json +0 -0
  326. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-wgtd.json +0 -0
  327. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-ca-cat-x-ca-subvar.json +0 -0
  328. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-ca-hs.json +0 -0
  329. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-cat-2.json +0 -0
  330. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-cat-date.json +0 -0
  331. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-cat-hs-mt.json +0 -0
  332. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-cat-mean-weighted.json +0 -0
  333. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-cat-mean.json +0 -0
  334. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-cat-profiles-stats-weighted.json +0 -0
  335. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-cat-pruned-col.json +0 -0
  336. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-cat-pruned-row-col.json +0 -0
  337. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-cat-pruned-row.json +0 -0
  338. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-cat-with-means.json +0 -0
  339. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-cat-x-mr-prune.json +0 -0
  340. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-cat-x-mr.json +0 -0
  341. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-cat.json +0 -0
  342. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-mr-2.json +0 -0
  343. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-mr-index-table.json +0 -0
  344. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-mr-mean-weighted.json +0 -0
  345. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-mr-mean.json +0 -0
  346. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-mr-means.json +0 -0
  347. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-mr-median.json +0 -0
  348. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-mr-selected-categories.json +0 -0
  349. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-mr-single-cat.json +0 -0
  350. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-mr-sum.json +0 -0
  351. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-mr-with-pruning.json +0 -0
  352. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-mr.json +0 -0
  353. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr-x-single-wave.json +0 -0
  354. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr_insertions/cat-hs-top-btm.json +0 -0
  355. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr_insertions/cat-x-mr-hs.json +0 -0
  356. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr_insertions/cat-x-mr.json +0 -0
  357. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr_insertions/mr-x-cat.json +0 -0
  358. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr_insertions/mr-x-mr.json +0 -0
  359. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr_insertions/scorecard.json +0 -0
  360. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/mr_insertions/univariate-mr.json +0 -0
  361. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/not-mr-cats.json +0 -0
  362. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/nssat-mr-x-3vl.json +0 -0
  363. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/nssat-mr-x-mr.json +0 -0
  364. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/num-binned.json +0 -0
  365. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/num-x-num-empty.json +0 -0
  366. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/num.json +0 -0
  367. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric-measures-x-cat.json +0 -0
  368. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric-x-cat-date.json +0 -0
  369. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-cat-date.json +0 -0
  370. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-cat-hs-weighted.json +0 -0
  371. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-cat-hs.json +0 -0
  372. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-cat-weighted.json +0 -0
  373. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-cat.json +0 -0
  374. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-means-grouped-by-date.json +0 -0
  375. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-means-no-grouping-weighted.json +0 -0
  376. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-means-no-grouping.json +0 -0
  377. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-means-scale-measures.json +0 -0
  378. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-means-x-mr-weighted.json +0 -0
  379. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-means-x-mr.json +0 -0
  380. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-median-grouped-by-cat.json +0 -0
  381. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-median-no-grouping.json +0 -0
  382. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-median-x-mr.json +0 -0
  383. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-multi-numeric-measures-grouped-by-cat.json +0 -0
  384. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-multi-numeric-measures-x-mr.json +0 -0
  385. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-stddev-grouped-by-cat.json +0 -0
  386. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-stddev-no-grouping.json +0 -0
  387. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-stddev-x-mr.json +0 -0
  388. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-sum-grouped-by-cat-hs.json +0 -0
  389. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-sum-grouped-by-cat.json +0 -0
  390. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-sum-no-grouping.json +0 -0
  391. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-sum-x-mr.json +0 -0
  392. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/numeric_arrays/num-arr-sums-with-nan-values.json +0 -0
  393. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/om-sgp8334215-vn-2019-sep-19-strand.json +0 -0
  394. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/om-sgp8334215-vn-2019-sep-19.json +0 -0
  395. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/overlaps/ca-sub-x-ca-cat-x-mr-sub-x-mr-sel.json +0 -0
  396. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/overlaps/cat-hs-x-mr.json +0 -0
  397. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/overlaps/cat-simple-x-mr.json +0 -0
  398. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/overlaps/cat-st-x-mr.json +0 -0
  399. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/overlaps/cat-x-mr-gender-x-all-pets-owned.json +0 -0
  400. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/overlaps/cat-x-mr-realistic-example.json +0 -0
  401. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/overlaps/cat-x-mr-sub-x-mr-sel.json +0 -0
  402. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/overlaps/mr-single-subvar-x-mr.json +0 -0
  403. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/overlaps/mr-x-mr-realistic-example.json +0 -0
  404. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/overlaps/mr-x-mr.json +0 -0
  405. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/pairwise-hirotsu-illness-x-occupation-plain-weights.json +0 -0
  406. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/pairwise-hirotsu-illness-x-occupation-square-weights.json +0 -0
  407. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/pairwise-hirotsu-illness-x-occupation-with-hs.json +0 -0
  408. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/pairwise-hirotsu-illness-x-occupation.json +0 -0
  409. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/pairwise-hirotsu-occupation-x-illness.json +0 -0
  410. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/pets-array-cat-first.json +0 -0
  411. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/pets-array-subvar-first.json +0 -0
  412. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/pets-array-x-pets.json +0 -0
  413. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/pets-array.json +0 -0
  414. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/pets-x-fruit-hs.json +0 -0
  415. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/pets-x-fruit.json +0 -0
  416. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/pets-x-pets-array.json +0 -0
  417. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/pets-x-pets.json +0 -0
  418. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/profiles-percents.json +0 -0
  419. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/prompted-awareness.json +0 -0
  420. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scale-with-null-values.json +0 -0
  421. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scale_means/bolshevik-hair.json +0 -0
  422. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scale_means/ca-cat-x-items.json +0 -0
  423. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scale_means/ca-items-x-cat.json +0 -0
  424. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scale_means/ca-x-mr.json +0 -0
  425. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scale_means/cat-nps-numval-x-cat.json +0 -0
  426. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scale_means/cat-single-element-x-cat.json +0 -0
  427. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scale_means/cat-x-ca-cat-x-items.json +0 -0
  428. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scale_means/cat-x-cat-sm-margin.json +0 -0
  429. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scale_means/cat-x-cat.json +0 -0
  430. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scale_means/cat-x-mr.json +0 -0
  431. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scale_means/mr-x-cat.json +0 -0
  432. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scale_means/univariate-ca-subvar.json +0 -0
  433. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scale_means/univariate-cat-with-all-null-numeric-value.json +0 -0
  434. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scale_means/univariate-cat-with-null-numeric-value.json +0 -0
  435. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scale_means/univariate-cat.json +0 -0
  436. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/scorecard.json +0 -0
  437. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/selected-3way-2-filledmissing.json +0 -0
  438. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/selected-3way-filledmissing.json +0 -0
  439. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/simple-ca-hs.json +0 -0
  440. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/simple-cat-array.json +0 -0
  441. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/simple-mr.json +0 -0
  442. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/single-col-margin-not-iterable.json +0 -0
  443. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/squared-weights-cat-x-cat.json +0 -0
  444. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/squared-weights.json +0 -0
  445. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/stats-test.json +0 -0
  446. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/sum-cat-x-mr.json +0 -0
  447. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/sum-mr-x-cat.json +0 -0
  448. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/test-dashboard-fixture.json +0 -0
  449. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/text.json +0 -0
  450. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/transforms/test-dashboard-transform-no-ordering.json +0 -0
  451. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/transforms/test-dashboard-transform-single-el-visible.json +0 -0
  452. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/txt-x-cat-date.json +0 -0
  453. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/univ-mr-with-hs.json +0 -0
  454. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/univariate-categorical.json +0 -0
  455. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/fixtures/xyz-simple-alltypes.json +0 -0
  456. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/integration/__init__.py +0 -0
  457. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/integration/test_collator.py +0 -0
  458. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/integration/test_cube.py +0 -0
  459. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/integration/test_dimension.py +0 -0
  460. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/integration/test_headers_and_subtotals.py +0 -0
  461. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/integration/test_index_table.py +0 -0
  462. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/integration/test_matrix.py +0 -0
  463. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/integration/test_multiple_response.py +0 -0
  464. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/integration/test_numeric_array.py +0 -0
  465. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/integration/test_pairwise_significance.py +0 -0
  466. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/integration/test_scale_additional_measures.py +0 -0
  467. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/integration/test_scale_means.py +0 -0
  468. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/integration/test_smoothing.py +0 -0
  469. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/integration/test_stripe.py +0 -0
  470. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/__init__.py +0 -0
  471. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/matrix/__init__.py +0 -0
  472. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/matrix/test_cubemeasure.py +0 -0
  473. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/matrix/test_subtotals.py +0 -0
  474. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/stripe/__init__.py +0 -0
  475. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/stripe/test_assembler.py +0 -0
  476. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/stripe/test_cubemeasure.py +0 -0
  477. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/stripe/test_insertion.py +0 -0
  478. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/stripe/test_measure.py +0 -0
  479. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/test_collator.py +0 -0
  480. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/test_cube.py +0 -0
  481. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/test_dimension.py +0 -0
  482. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/test_enum.py +0 -0
  483. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/test_scalar.py +0 -0
  484. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/test_smoothing.py +0 -0
  485. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unit/test_util.py +0 -0
  486. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/unitutil.py +0 -0
  487. {cr_cube-3.1.4 → cr_cube-3.2.0}/tests/util.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: cr_cube
3
- Version: 3.1.4
3
+ Version: 3.2.0
4
4
  Summary: Crunch.io Cube library
5
5
  Home-page: https://github.com/Crunch-io/crunch-cube/
6
6
  Author: Crunch.io
@@ -9,12 +9,29 @@ License: MIT License
9
9
  Classifier: Programming Language :: Python
10
10
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
11
11
  Description-Content-Type: text/markdown
12
- Provides-Extra: testing
13
12
  License-File: LICENSE
13
+ Requires-Dist: scipy
14
+ Requires-Dist: tabulate
15
+ Provides-Extra: testing
16
+ Requires-Dist: pytest; extra == "testing"
17
+ Requires-Dist: pytest-cov; extra == "testing"
18
+ Requires-Dist: mock; extra == "testing"
19
+ Requires-Dist: coverage; extra == "testing"
20
+ Dynamic: author
21
+ Dynamic: author-email
22
+ Dynamic: classifier
23
+ Dynamic: description
24
+ Dynamic: description-content-type
25
+ Dynamic: home-page
26
+ Dynamic: license
27
+ Dynamic: license-file
28
+ Dynamic: provides-extra
29
+ Dynamic: requires-dist
30
+ Dynamic: summary
14
31
 
15
32
  # crunch-cube
16
33
 
17
- ![Build Status](https://github.com/Crunch-io/crunch-cube/workflows/CI/badge.svg?branch=master)
34
+ ![Build Status](https://github.com/Crunch-io/crunch-cube/workflows/CI/badge.svg)
18
35
  ![Coverage Status](https://codecov.io/gh/Crunch-io/crunch-cube/branch/master/graph/badge.svg?token=C6auKOj8tZ)
19
36
  ![Documentation Status](https://readthedocs.org/projects/crunch-cube/badge/?version=latest)
20
37
 
@@ -99,9 +116,19 @@ simple as:
99
116
  Please visit <https://crunch-cube.readthedocs.io/en/latest> for the API reference.
100
117
 
101
118
  ---
119
+ ## Changes
120
+
121
+ ### 3.2.0
122
+
123
+ - Add table code and label
124
+ - Cleanup repo
102
125
 
103
126
  ## Changes
104
127
 
128
+ ### 3.1.5
129
+
130
+ - Add audience ratio measure
131
+
105
132
  ### 3.1.4
106
133
 
107
134
  - Sort column by opposing row
@@ -1,6 +1,6 @@
1
1
  # crunch-cube
2
2
 
3
- ![Build Status](https://github.com/Crunch-io/crunch-cube/workflows/CI/badge.svg?branch=master)
3
+ ![Build Status](https://github.com/Crunch-io/crunch-cube/workflows/CI/badge.svg)
4
4
  ![Coverage Status](https://codecov.io/gh/Crunch-io/crunch-cube/branch/master/graph/badge.svg?token=C6auKOj8tZ)
5
5
  ![Documentation Status](https://readthedocs.org/projects/crunch-cube/badge/?version=latest)
6
6
 
@@ -85,9 +85,19 @@ simple as:
85
85
  Please visit <https://crunch-cube.readthedocs.io/en/latest> for the API reference.
86
86
 
87
87
  ---
88
+ ## Changes
89
+
90
+ ### 3.2.0
91
+
92
+ - Add table code and label
93
+ - Cleanup repo
88
94
 
89
95
  ## Changes
90
96
 
97
+ ### 3.1.5
98
+
99
+ - Add audience ratio measure
100
+
91
101
  ### 3.1.4
92
102
 
93
103
  - Sort column by opposing row
@@ -2,4 +2,4 @@
2
2
 
3
3
  """Initialization module for crunch-cube package."""
4
4
 
5
- __version__ = "3.1.4"
5
+ __version__ = "3.2.0"
@@ -278,6 +278,11 @@ class _Slice(CubePartition):
278
278
 
279
279
  # ---interface ---------------------------------------------------
280
280
 
281
+ @lazyproperty
282
+ def audience_ratio(self):
283
+ """2D np.float64 ndarray of audience-ratio for each matrix cell."""
284
+ return self._assemble_matrix(self._measures.audience_ratio.blocks)
285
+
281
286
  @lazyproperty
282
287
  def column_aliases(self):
283
288
  """1D str ndarray of alias for each column, for use as column headings."""
@@ -1625,6 +1630,26 @@ class _Slice(CubePartition):
1625
1630
  return f"{title}: {table_name}"
1626
1631
  return None
1627
1632
 
1633
+ @lazyproperty
1634
+ def table_label(self):
1635
+ """Optional table label for this Slice"""
1636
+ if self._cube.ndim < 3:
1637
+ return None
1638
+ valid_elements = self._cube.dimensions[0].valid_elements
1639
+ if valid_elements.element_ids:
1640
+ return valid_elements[self._slice_idx].label
1641
+ return None
1642
+
1643
+ @lazyproperty
1644
+ def table_code(self):
1645
+ """Optional table code for this Slice"""
1646
+ if self._cube.ndim < 3:
1647
+ return None
1648
+ valid_elements = self._cube.dimensions[0].valid_elements
1649
+ if valid_elements.element_ids:
1650
+ return valid_elements[self._slice_idx].element_id
1651
+ return None
1652
+
1628
1653
  @lazyproperty
1629
1654
  def table_percentages(self):
1630
1655
  return self.table_proportions * 100
@@ -2431,6 +2456,28 @@ class _Strand(CubePartition):
2431
2456
  return f"{title}: {table_name}"
2432
2457
  return None
2433
2458
 
2459
+ @lazyproperty
2460
+ def table_label(self):
2461
+ """Optional table label for this strand
2462
+
2463
+ Only for CA-as-0th case, provides differentiated labels for stacked tables.
2464
+ """
2465
+ valid_elements = self._cube.dimensions[0].valid_elements
2466
+ if valid_elements.element_ids:
2467
+ return valid_elements[self._slice_idx].label
2468
+ return None
2469
+
2470
+ @lazyproperty
2471
+ def table_code(self):
2472
+ """Optional table code for this strand
2473
+
2474
+ Only for CA-as-0th case, provides differentiated codes for stacked tables.
2475
+ """
2476
+ valid_elements = self._cube.dimensions[0].valid_elements
2477
+ if valid_elements.element_ids:
2478
+ return valid_elements[self._slice_idx].element_id
2479
+ return None
2480
+
2434
2481
  @lazyproperty
2435
2482
  def table_percentages(self):
2436
2483
  """1D np.float64 ndarray of table-percentage for each row.
@@ -2581,6 +2628,14 @@ class _Nub(CubePartition):
2581
2628
  def table_name(self):
2582
2629
  return None
2583
2630
 
2631
+ @lazyproperty
2632
+ def table_label(self):
2633
+ return None
2634
+
2635
+ @lazyproperty
2636
+ def table_code(self):
2637
+ return None
2638
+
2584
2639
  @lazyproperty
2585
2640
  def unweighted_count(self):
2586
2641
  """Integer scalar of total unweighted count of the table"""
@@ -116,6 +116,7 @@ class MEASURE(enum.Enum):
116
116
  COLUMN_BASE_WEIGHTED = "col_base_weighted"
117
117
  COLUMN_INDEX = "col_index"
118
118
  COLUMN_PERCENT = "col_percent"
119
+ AUDIENCE_RATIO = "audience_ratio"
119
120
  COLUMN_PERCENT_MOE = "col_percent_moe"
120
121
  COLUMN_SHARE_SUM = "col_share_sum"
121
122
  COLUMN_STDDEV = "col_std_dev"
@@ -50,19 +50,17 @@ class _BaseOrderHelper:
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
+ # fmt: off
53
54
  HelperCls = (
54
55
  _SortColumnsByLabelHelper
55
56
  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
- )
57
+ else _SortColumnsByBaseRowHelper
58
+ if collation_method == CM.OPPOSING_ELEMENT
59
+ else _SortColumnsByInsertedRowHelper
60
+ if collation_method == CM.OPPOSING_INSERTION
61
+ else _ColumnOrderHelper
65
62
  )
63
+ # fmt: on
66
64
  return HelperCls(dimensions, second_order_measures, format)._display_order
67
65
 
68
66
  @classmethod
@@ -75,28 +73,21 @@ class _BaseOrderHelper:
75
73
  """
76
74
  collation_method = dimensions[0].order_spec.collation_method
77
75
  dim_type = dimensions[1].dimension_type
76
+ # fmt: off
78
77
  HelperCls = (
79
78
  _SortRowsByBaseColumnHelper
80
79
  if collation_method == CM.OPPOSING_ELEMENT
81
- else (
82
- _SortRowsByDerivedColumnHelper
83
- if collation_method == CM.OPPOSING_INSERTION
84
- and dim_type in DT.ARRAY_TYPES
85
- else (
86
- _SortRowsByInsertedColumnHelper
87
- if collation_method == CM.OPPOSING_INSERTION
88
- else (
89
- _SortRowsByLabelHelper
90
- if collation_method == CM.LABEL
91
- else (
92
- _SortRowsByMarginalHelper
93
- if collation_method == CM.MARGINAL
94
- else _RowOrderHelper
95
- )
96
- )
97
- )
98
- )
80
+ else _SortRowsByDerivedColumnHelper
81
+ if collation_method == CM.OPPOSING_INSERTION and dim_type in DT.ARRAY_TYPES
82
+ else _SortRowsByInsertedColumnHelper
83
+ if collation_method == CM.OPPOSING_INSERTION
84
+ else _SortRowsByLabelHelper
85
+ if collation_method == CM.LABEL
86
+ else _SortRowsByMarginalHelper
87
+ if collation_method == CM.MARGINAL
88
+ else _RowOrderHelper
99
89
  )
90
+ # fmt: on
100
91
  return HelperCls(dimensions, second_order_measures, format)._display_order
101
92
 
102
93
  @lazyproperty
@@ -155,6 +146,7 @@ class _BaseOrderHelper:
155
146
  M.COLUMN_BASE_WEIGHTED: "column_weighted_bases",
156
147
  M.COLUMN_INDEX: "column_index",
157
148
  M.COLUMN_PERCENT: "column_proportions",
149
+ M.AUDIENCE_RATIO: "audience_ratio",
158
150
  M.COLUMN_PERCENT_MOE: "column_std_err", # monotonic transform
159
151
  M.COLUMN_SHARE_SUM: "column_share_sum",
160
152
  M.COLUMN_STDDEV: "column_proportion_variances", # monotonic transform
@@ -33,6 +33,11 @@ class SecondOrderMeasures:
33
33
  self._dimensions = dimensions
34
34
  self._slice_idx = slice_idx
35
35
 
36
+ @lazyproperty
37
+ def audience_ratio(self):
38
+ """_AudienceRatio measure object for this cube-result."""
39
+ return _AudienceRatio(self._dimensions, self, self._cube_measures)
40
+
36
41
  @lazyproperty
37
42
  def column_comparable_counts(self):
38
43
  """_ColumnComparableCounts measure object for this cube-result."""
@@ -830,6 +835,76 @@ class _ColumnProportions(_BaseSecondOrderMeasure):
830
835
  return self._second_order_measures.column_weighted_bases.blocks
831
836
 
832
837
 
838
+ class _AudienceRatio(_ColumnProportions):
839
+ """Provides the audience-ratio measure for a matrix.
840
+
841
+ This measure (also known as "Index") is a 2D np.float64 ndarray of the ratio of the
842
+ proportions of the first column to the proportions of the second column.
843
+
844
+ Audience ratio (Index) is a convenient way of showing the ratio of the Target % and
845
+ the Control % when we have a compared group analysis (aka profiles analysis).
846
+
847
+ NOTE: At the moment we only support 2 compare groups, means that we can only have 2
848
+ column max in the analysis. In case of ncol>2 we will return a 2D ndarray of nans as
849
+ if it were a non-valid audience ratio.
850
+ """
851
+
852
+ @lazyproperty
853
+ def _base_values(self):
854
+ """2D ndarray np.float64 of the base values of the audience ratio"""
855
+ # --- do not propagate divide-by-zero warnings to stderr ---
856
+ with np.errstate(divide="ignore", invalid="ignore"):
857
+ if not self._can_compute_measure:
858
+ return np.full(self._count_blocks[0][0].shape, np.nan)
859
+ base_values = self._count_blocks[0][0] / self._weighted_base_blocks[0][0]
860
+ values = (base_values[:, 0] / base_values[:, 1]) * 100
861
+ return np.column_stack((values, np.full_like(values, np.nan)))
862
+
863
+ @lazyproperty
864
+ def _can_compute_measure(self):
865
+ """Bool indicating whether audience ratio is computable.
866
+
867
+ If there are more than 2 columns, we return nans as a non-valid measure values
868
+ """
869
+ return False if self._count_blocks[0][0].shape[-1] != 2 else True
870
+
871
+ @lazyproperty
872
+ def _intersections(self):
873
+ """(n_row_subtotals, n_col_subtotals) ndarray of intersection values.
874
+
875
+ An intersection value arises where a row-subtotal crosses a column-subtotal.
876
+
877
+ Always nan because the audience ratio is not defined for the intersection
878
+ """
879
+ # --- do not propagate divide-by-zero warnings to stderr ---
880
+ return np.full(self._count_blocks[1][1].shape, np.nan)
881
+
882
+ @lazyproperty
883
+ def _subtotal_columns(self):
884
+ """2D np.float64 ndarray of audience ratio values.
885
+
886
+ This is the second "block" and has the shape (n_rows, n_col_subtotals).
887
+
888
+ Always empty because the audience ratio has no subtotal columns
889
+ """
890
+ # --- do not propagate divide-by-zero warnings to stderr ---
891
+ return np.empty(self._count_blocks[0][1].shape)
892
+
893
+ @lazyproperty
894
+ def _subtotal_rows(self):
895
+ """2D np.float64 ndarray of audience ratio values.
896
+
897
+ This is the third "block" and has the shape (n_row_subtotals, n_cols).
898
+ """
899
+ # --- do not propagate divide-by-zero warnings to stderr ---
900
+ with np.errstate(divide="ignore", invalid="ignore"):
901
+ if not self._can_compute_measure:
902
+ return np.full(self._count_blocks[1][0].shape, np.nan)
903
+ base_values = self._count_blocks[1][0] / self._weighted_base_blocks[1][0]
904
+ subtotal_rows = (base_values[:, 0] / base_values[:, 1]) * 100
905
+ return np.column_stack((subtotal_rows, np.full_like(subtotal_rows, np.nan)))
906
+
907
+
833
908
  class _ColumnProportionsSmoothed(_ColumnProportions, _SmoothedMeasure):
834
909
  """Provides the smoothed column-proportions measure for a matrix.
835
910
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
2
- Name: cr-cube
3
- Version: 3.1.4
1
+ Metadata-Version: 2.4
2
+ Name: cr_cube
3
+ Version: 3.2.0
4
4
  Summary: Crunch.io Cube library
5
5
  Home-page: https://github.com/Crunch-io/crunch-cube/
6
6
  Author: Crunch.io
@@ -9,12 +9,29 @@ License: MIT License
9
9
  Classifier: Programming Language :: Python
10
10
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
11
11
  Description-Content-Type: text/markdown
12
- Provides-Extra: testing
13
12
  License-File: LICENSE
13
+ Requires-Dist: scipy
14
+ Requires-Dist: tabulate
15
+ Provides-Extra: testing
16
+ Requires-Dist: pytest; extra == "testing"
17
+ Requires-Dist: pytest-cov; extra == "testing"
18
+ Requires-Dist: mock; extra == "testing"
19
+ Requires-Dist: coverage; extra == "testing"
20
+ Dynamic: author
21
+ Dynamic: author-email
22
+ Dynamic: classifier
23
+ Dynamic: description
24
+ Dynamic: description-content-type
25
+ Dynamic: home-page
26
+ Dynamic: license
27
+ Dynamic: license-file
28
+ Dynamic: provides-extra
29
+ Dynamic: requires-dist
30
+ Dynamic: summary
14
31
 
15
32
  # crunch-cube
16
33
 
17
- ![Build Status](https://github.com/Crunch-io/crunch-cube/workflows/CI/badge.svg?branch=master)
34
+ ![Build Status](https://github.com/Crunch-io/crunch-cube/workflows/CI/badge.svg)
18
35
  ![Coverage Status](https://codecov.io/gh/Crunch-io/crunch-cube/branch/master/graph/badge.svg?token=C6auKOj8tZ)
19
36
  ![Documentation Status](https://readthedocs.org/projects/crunch-cube/badge/?version=latest)
20
37
 
@@ -99,9 +116,19 @@ simple as:
99
116
  Please visit <https://crunch-cube.readthedocs.io/en/latest> for the API reference.
100
117
 
101
118
  ---
119
+ ## Changes
120
+
121
+ ### 3.2.0
122
+
123
+ - Add table code and label
124
+ - Cleanup repo
102
125
 
103
126
  ## Changes
104
127
 
128
+ ### 3.1.5
129
+
130
+ - Add audience ratio measure
131
+
105
132
  ### 3.1.4
106
133
 
107
134
  - Sort column by opposing row
@@ -176,10 +176,7 @@ tests/fixtures/age-x-accrpipe.json
176
176
  tests/fixtures/ca-as-0th.json
177
177
  tests/fixtures/ca-cat-x-ca-subvar.json
178
178
  tests/fixtures/ca-cat-x-mr-x-ca-subvar-hs.json
179
- tests/fixtures/ca-food-groups-x-shape-of-pasta-with-insertions.json
180
- tests/fixtures/ca-items-x-ca-cat-x-cat.json
181
179
  tests/fixtures/ca-single-cat.json
182
- tests/fixtures/ca-subdiff.json
183
180
  tests/fixtures/ca-subvar-hs-x-mr-x-ca-cat.json
184
181
  tests/fixtures/ca-subvar-hs-x-mr.json
185
182
  tests/fixtures/ca-subvar-x-ca-cat-empties.json
@@ -187,10 +184,8 @@ tests/fixtures/ca-subvar-x-ca-cat-hs.json
187
184
  tests/fixtures/ca-subvar-x-ca-cat-mean.json
188
185
  tests/fixtures/ca-subvar-x-ca-cat-x-cat-date.json
189
186
  tests/fixtures/ca-subvar-x-ca-cat-x-mr.json
190
- tests/fixtures/ca-with-nets.json
191
187
  tests/fixtures/ca-x-cat-hs.json
192
188
  tests/fixtures/ca-x-mr-hs.json
193
- tests/fixtures/ca-x-mr-sig-testing-subtotals.json
194
189
  tests/fixtures/ca-x-mr-weighted-hs.json
195
190
  tests/fixtures/ca-x-mr.json
196
191
  tests/fixtures/ca-x-single-cat.json
@@ -206,6 +201,7 @@ tests/fixtures/cat-hs-x-cat-date.json
206
201
  tests/fixtures/cat-hs-x-cat-hs-empties.json
207
202
  tests/fixtures/cat-hs-x-cat-hs.json
208
203
  tests/fixtures/cat-hs-x-cat.json
204
+ tests/fixtures/cat-hs-x-compare-groups.json
209
205
  tests/fixtures/cat-hs-x-mr-wgtd.json
210
206
  tests/fixtures/cat-hs-x-mr.json
211
207
  tests/fixtures/cat-mean.json
@@ -231,10 +227,7 @@ tests/fixtures/cat-x-cat-mean-wgtd.json
231
227
  tests/fixtures/cat-x-cat-weighted-ttests.json
232
228
  tests/fixtures/cat-x-cat-wgtd.json
233
229
  tests/fixtures/cat-x-cat-with-empty-cols.json
234
- tests/fixtures/cat-x-cat-x-cat-wgtd-no-query-weight.json
235
- tests/fixtures/cat-x-cat-x-cat-wgtd.json
236
230
  tests/fixtures/cat-x-cat.json
237
- tests/fixtures/cat-x-date-hs-prune.json
238
231
  tests/fixtures/cat-x-datetime.json
239
232
  tests/fixtures/cat-x-items-x-cats-hs.json
240
233
  tests/fixtures/cat-x-logical.json
@@ -257,12 +250,10 @@ tests/fixtures/cat-x-mr.json
257
250
  tests/fixtures/cat-x-num-hs-prune.json
258
251
  tests/fixtures/cat-x-num-x-datetime.json
259
252
  tests/fixtures/cat.json
260
- tests/fixtures/countries-x-shapes-of-pasta.json
261
253
  tests/fixtures/date.json
262
254
  tests/fixtures/datetime-x-cat-date.json
263
255
  tests/fixtures/deck-with-mean.json
264
256
  tests/fixtures/dichotomized-numeric-mean.json
265
- tests/fixtures/direction-of-country-x-education-weighted.json
266
257
  tests/fixtures/econ-blame-with-hs.json
267
258
  tests/fixtures/econ-blame-x-ideology-col-hs.json
268
259
  tests/fixtures/econ-blame-x-ideology-row-and-col-hs.json
@@ -272,8 +263,6 @@ tests/fixtures/econ-mean-age-blame-x-gender.json
272
263
  tests/fixtures/econ-mean-no-dims.json
273
264
  tests/fixtures/econ-nodata-no-dims.json
274
265
  tests/fixtures/econ-us-problem-x-bigger-problem.json
275
- tests/fixtures/edu-fav5.json
276
- tests/fixtures/food-groops-x-starttime-x-nordic-countries.json
277
266
  tests/fixtures/food-group-x-shape-of-pasta-2rows-insertion.json
278
267
  tests/fixtures/food-group-x-shape-pasta-2rows1col-insertion.json
279
268
  tests/fixtures/fruit-hs-top-bottom.json
@@ -285,7 +274,6 @@ tests/fixtures/fruit-x-pets.json
285
274
  tests/fixtures/full-cube.json
286
275
  tests/fixtures/gender-party-race.json
287
276
  tests/fixtures/gender-x-weight.json
288
- tests/fixtures/huffpost-actions-x-household.json
289
277
  tests/fixtures/letters-x-pets-hs.json
290
278
  tests/fixtures/logical-univariate.json
291
279
  tests/fixtures/mean-cat-x-cat.json
@@ -310,12 +298,10 @@ tests/fixtures/mr-wgtd.json
310
298
  tests/fixtures/mr-x-ca-cat-x-ca-subvar.json
311
299
  tests/fixtures/mr-x-ca-hs.json
312
300
  tests/fixtures/mr-x-cat-2.json
313
- tests/fixtures/mr-x-cat-both-single-element.json
314
301
  tests/fixtures/mr-x-cat-date.json
315
302
  tests/fixtures/mr-x-cat-hs-mt.json
316
303
  tests/fixtures/mr-x-cat-mean-weighted.json
317
304
  tests/fixtures/mr-x-cat-mean.json
318
- tests/fixtures/mr-x-cat-not-so-simple-alltypes.json
319
305
  tests/fixtures/mr-x-cat-profiles-stats-weighted.json
320
306
  tests/fixtures/mr-x-cat-pruned-col.json
321
307
  tests/fixtures/mr-x-cat-pruned-row-col.json
@@ -324,6 +310,7 @@ tests/fixtures/mr-x-cat-with-means.json
324
310
  tests/fixtures/mr-x-cat-x-mr-prune.json
325
311
  tests/fixtures/mr-x-cat-x-mr.json
326
312
  tests/fixtures/mr-x-cat.json
313
+ tests/fixtures/mr-x-compare-groups.json
327
314
  tests/fixtures/mr-x-mr-2.json
328
315
  tests/fixtures/mr-x-mr-index-table.json
329
316
  tests/fixtures/mr-x-mr-mean-weighted.json
@@ -334,9 +321,7 @@ tests/fixtures/mr-x-mr-selected-categories.json
334
321
  tests/fixtures/mr-x-mr-single-cat.json
335
322
  tests/fixtures/mr-x-mr-sum.json
336
323
  tests/fixtures/mr-x-mr-with-pruning.json
337
- tests/fixtures/mr-x-mr-x-cat.json
338
324
  tests/fixtures/mr-x-mr.json
339
- tests/fixtures/mr-x-other-mr.json
340
325
  tests/fixtures/mr-x-single-wave.json
341
326
  tests/fixtures/not-mr-cats.json
342
327
  tests/fixtures/nssat-mr-x-3vl.json
@@ -348,14 +333,11 @@ tests/fixtures/numeric-measures-x-cat.json
348
333
  tests/fixtures/numeric-x-cat-date.json
349
334
  tests/fixtures/om-sgp8334215-vn-2019-sep-19-strand.json
350
335
  tests/fixtures/om-sgp8334215-vn-2019-sep-19.json
351
- tests/fixtures/pairwise-4x4.json
352
336
  tests/fixtures/pairwise-hirotsu-illness-x-occupation-plain-weights.json
353
337
  tests/fixtures/pairwise-hirotsu-illness-x-occupation-square-weights.json
354
338
  tests/fixtures/pairwise-hirotsu-illness-x-occupation-with-hs.json
355
339
  tests/fixtures/pairwise-hirotsu-illness-x-occupation.json
356
340
  tests/fixtures/pairwise-hirotsu-occupation-x-illness.json
357
- tests/fixtures/pairwise-random-3x4.json
358
- tests/fixtures/pairwise-with-zero-margin.json
359
341
  tests/fixtures/pets-array-cat-first.json
360
342
  tests/fixtures/pets-array-subvar-first.json
361
343
  tests/fixtures/pets-array-x-pets.json
@@ -366,20 +348,16 @@ tests/fixtures/pets-x-pets-array.json
366
348
  tests/fixtures/pets-x-pets.json
367
349
  tests/fixtures/profiles-percents.json
368
350
  tests/fixtures/prompted-awareness.json
369
- tests/fixtures/same-counts-3x4.json
370
351
  tests/fixtures/scale-with-null-values.json
371
352
  tests/fixtures/scorecard.json
372
353
  tests/fixtures/selected-3way-2-filledmissing.json
373
354
  tests/fixtures/selected-3way-filledmissing.json
374
- tests/fixtures/selected-crosstab-array-first.json
375
- tests/fixtures/selected-crosstab-array-last.json
376
355
  tests/fixtures/simple-ca-hs.json
377
356
  tests/fixtures/simple-cat-array.json
378
357
  tests/fixtures/simple-mr.json
379
358
  tests/fixtures/single-col-margin-not-iterable.json
380
359
  tests/fixtures/squared-weights-cat-x-cat.json
381
360
  tests/fixtures/squared-weights.json
382
- tests/fixtures/starttime-x-nordic-countries-x-food-groops.json
383
361
  tests/fixtures/stats-test.json
384
362
  tests/fixtures/sum-cat-x-mr.json
385
363
  tests/fixtures/sum-mr-x-cat.json
@@ -445,7 +423,6 @@ tests/fixtures/scale_means/univariate-ca-subvar.json
445
423
  tests/fixtures/scale_means/univariate-cat-with-all-null-numeric-value.json
446
424
  tests/fixtures/scale_means/univariate-cat-with-null-numeric-value.json
447
425
  tests/fixtures/scale_means/univariate-cat.json
448
- tests/fixtures/transforms/generic-transforms-dicts.json
449
426
  tests/fixtures/transforms/test-dashboard-transform-no-ordering.json
450
427
  tests/fixtures/transforms/test-dashboard-transform-single-el-visible.json
451
428
  tests/integration/__init__.py