misato 0.1.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 (235) hide show
  1. misato-0.1.0/.gitattributes +2 -0
  2. misato-0.1.0/.gitignore +181 -0
  3. misato-0.1.0/CHANGELOG.md +50 -0
  4. misato-0.1.0/LICENSE +21 -0
  5. misato-0.1.0/PKG-INFO +149 -0
  6. misato-0.1.0/README.md +93 -0
  7. misato-0.1.0/docs/glossary.md +73 -0
  8. misato-0.1.0/pyproject.toml +103 -0
  9. misato-0.1.0/src/misato/__init__.py +79 -0
  10. misato-0.1.0/src/misato/_core/__init__.py +6 -0
  11. misato-0.1.0/src/misato/_core/binning.py +31 -0
  12. misato-0.1.0/src/misato/_core/formatting.py +26 -0
  13. misato-0.1.0/src/misato/_core/i18n.py +36 -0
  14. misato-0.1.0/src/misato/_core/kinds.py +37 -0
  15. misato-0.1.0/src/misato/_core/optional.py +31 -0
  16. misato-0.1.0/src/misato/_core/registry.py +46 -0
  17. misato-0.1.0/src/misato/_core/sampling.py +28 -0
  18. misato-0.1.0/src/misato/_core/tables.py +26 -0
  19. misato-0.1.0/src/misato/_core/transforms.py +56 -0
  20. misato-0.1.0/src/misato/_core/types.py +16 -0
  21. misato-0.1.0/src/misato/_core/validation.py +64 -0
  22. misato-0.1.0/src/misato/cache.py +117 -0
  23. misato-0.1.0/src/misato/config/__init__.py +11 -0
  24. misato-0.1.0/src/misato/config/defaults.py +104 -0
  25. misato-0.1.0/src/misato/config/locales/en.toml +205 -0
  26. misato-0.1.0/src/misato/config/locales/es.toml +205 -0
  27. misato-0.1.0/src/misato/config/options.py +70 -0
  28. misato-0.1.0/src/misato/config/palettes.py +141 -0
  29. misato-0.1.0/src/misato/config/theme.py +233 -0
  30. misato-0.1.0/src/misato/diagnostics/__init__.py +33 -0
  31. misato-0.1.0/src/misato/diagnostics/multicollinearity.py +139 -0
  32. misato-0.1.0/src/misato/diagnostics/pca.py +156 -0
  33. misato-0.1.0/src/misato/diagnostics/regression.py +355 -0
  34. misato-0.1.0/src/misato/evaluation/__init__.py +19 -0
  35. misato-0.1.0/src/misato/evaluation/cross_validation.py +607 -0
  36. misato-0.1.0/src/misato/geo/__init__.py +33 -0
  37. misato-0.1.0/src/misato/geo/checks.py +64 -0
  38. misato-0.1.0/src/misato/geo/distances.py +56 -0
  39. misato-0.1.0/src/misato/geo/maps.py +162 -0
  40. misato-0.1.0/src/misato/geo/regions.py +29 -0
  41. misato-0.1.0/src/misato/interactive/__init__.py +19 -0
  42. misato-0.1.0/src/misato/interactive/_base.py +22 -0
  43. misato-0.1.0/src/misato/interactive/conditional.py +201 -0
  44. misato-0.1.0/src/misato/interactive/influence.py +60 -0
  45. misato-0.1.0/src/misato/interactive/joint.py +195 -0
  46. misato-0.1.0/src/misato/plots/__init__.py +75 -0
  47. misato-0.1.0/src/misato/plots/_annotate.py +47 -0
  48. misato-0.1.0/src/misato/plots/_base.py +193 -0
  49. misato-0.1.0/src/misato/plots/_normality.py +383 -0
  50. misato-0.1.0/src/misato/plots/categorical.py +362 -0
  51. misato-0.1.0/src/misato/plots/comparison.py +130 -0
  52. misato-0.1.0/src/misato/plots/correlation.py +261 -0
  53. misato-0.1.0/src/misato/plots/diagnostics.py +303 -0
  54. misato-0.1.0/src/misato/plots/distribution.py +293 -0
  55. misato-0.1.0/src/misato/plots/evaluation.py +345 -0
  56. misato-0.1.0/src/misato/plots/intervals.py +146 -0
  57. misato-0.1.0/src/misato/plots/missing.py +40 -0
  58. misato-0.1.0/src/misato/py.typed +0 -0
  59. misato-0.1.0/src/misato/stats/__init__.py +29 -0
  60. misato-0.1.0/src/misato/stats/association.py +577 -0
  61. misato-0.1.0/src/misato/stats/correlation.py +68 -0
  62. misato-0.1.0/src/misato/stats/intervals.py +118 -0
  63. misato-0.1.0/src/misato/stats/normality.py +299 -0
  64. misato-0.1.0/src/misato/stats/probability.py +104 -0
  65. misato-0.1.0/src/misato/stats/relevance.py +90 -0
  66. misato-0.1.0/tests/conftest.py +16 -0
  67. misato-0.1.0/tests/fixtures/__init__.py +0 -0
  68. misato-0.1.0/tests/fixtures/datasets.py +95 -0
  69. misato-0.1.0/tests/parity/DIFFERENCES.md +205 -0
  70. misato-0.1.0/tests/parity/__init__.py +0 -0
  71. misato-0.1.0/tests/parity/cases.py +798 -0
  72. misato-0.1.0/tests/parity/check.py +44 -0
  73. misato-0.1.0/tests/parity/fingerprint.py +370 -0
  74. misato-0.1.0/tests/parity/golden/association/cat_cat.pkl +0 -0
  75. misato-0.1.0/tests/parity/golden/association/cat_cat_alpha.pkl +0 -0
  76. misato-0.1.0/tests/parity/golden/association/num_cat.pkl +0 -0
  77. misato-0.1.0/tests/parity/golden/association/num_cat_nmin.pkl +0 -0
  78. misato-0.1.0/tests/parity/golden/association/target_binary.pkl +0 -0
  79. misato-0.1.0/tests/parity/golden/association/target_categorical_types.pkl +0 -0
  80. misato-0.1.0/tests/parity/golden/association/target_numeric.pkl +0 -0
  81. misato-0.1.0/tests/parity/golden/cache/content_hash_frame.pkl +0 -0
  82. misato-0.1.0/tests/parity/golden/cache/content_hash_mixed.pkl +0 -0
  83. misato-0.1.0/tests/parity/golden/categorical/bars_default.pkl +0 -0
  84. misato-0.1.0/tests/parity/golden/categorical/bars_order_title.pkl +0 -0
  85. misato-0.1.0/tests/parity/golden/categorical/bars_pct_both_top.pkl +0 -0
  86. misato-0.1.0/tests/parity/golden/categorical/relation_all_pct.pkl +0 -0
  87. misato-0.1.0/tests/parity/golden/categorical/relation_hue_pct.pkl +0 -0
  88. misato-0.1.0/tests/parity/golden/categorical/relation_x.pkl +0 -0
  89. misato-0.1.0/tests/parity/golden/categorical/segmented_counts_bar.pkl +0 -0
  90. misato-0.1.0/tests/parity/golden/categorical/segmented_default.pkl +0 -0
  91. misato-0.1.0/tests/parity/golden/categorical/segmented_norm_all.pkl +0 -0
  92. misato-0.1.0/tests/parity/golden/categorical/segmented_norm_bar.pkl +0 -0
  93. misato-0.1.0/tests/parity/golden/comparison/boxplot_default.pkl +0 -0
  94. misato-0.1.0/tests/parity/golden/comparison/boxplot_h_nopoints.pkl +0 -0
  95. misato-0.1.0/tests/parity/golden/correlation/matrix_cov.pkl +0 -0
  96. misato-0.1.0/tests/parity/golden/correlation/matrix_kendall.pkl +0 -0
  97. misato-0.1.0/tests/parity/golden/correlation/matrix_pearson.pkl +0 -0
  98. misato-0.1.0/tests/parity/golden/correlation/matrix_spearman_cols.pkl +0 -0
  99. misato-0.1.0/tests/parity/golden/correlation/mutual_information.pkl +0 -0
  100. misato-0.1.0/tests/parity/golden/correlation/mutual_information_discrete.pkl +0 -0
  101. misato-0.1.0/tests/parity/golden/correlation/relevance_analysis.pkl +0 -0
  102. misato-0.1.0/tests/parity/golden/correlation/relevance_plot.pkl +0 -0
  103. misato-0.1.0/tests/parity/golden/correlation/relevance_score.pkl +0 -0
  104. misato-0.1.0/tests/parity/golden/correlation/target_correlation.pkl +0 -0
  105. misato-0.1.0/tests/parity/golden/correlation/target_vector.pkl +0 -0
  106. misato-0.1.0/tests/parity/golden/correlation/target_vector_titles.pkl +0 -0
  107. misato-0.1.0/tests/parity/golden/distribution/faceted.pkl +0 -0
  108. misato-0.1.0/tests/parity/golden/distribution/faceted_nokde.pkl +0 -0
  109. misato-0.1.0/tests/parity/golden/distribution/hist_counts_labels.pkl +0 -0
  110. misato-0.1.0/tests/parity/golden/distribution/hist_default.pkl +0 -0
  111. misato-0.1.0/tests/parity/golden/distribution/hist_pct_bins.pkl +0 -0
  112. misato-0.1.0/tests/parity/golden/distribution/num_relation_all.pkl +0 -0
  113. misato-0.1.0/tests/parity/golden/distribution/num_relation_hue_pct.pkl +0 -0
  114. misato-0.1.0/tests/parity/golden/distribution/num_relation_x.pkl +0 -0
  115. misato-0.1.0/tests/parity/golden/evaluation/bootstrap.pkl +0 -0
  116. misato-0.1.0/tests/parity/golden/evaluation/coefficients.pkl +0 -0
  117. misato-0.1.0/tests/parity/golden/evaluation/confusion.pkl +0 -0
  118. misato-0.1.0/tests/parity/golden/evaluation/evaluate.pkl +0 -0
  119. misato-0.1.0/tests/parity/golden/evaluation/final_fit.pkl +0 -0
  120. misato-0.1.0/tests/parity/golden/evaluation/grid_best_params.pkl +0 -0
  121. misato-0.1.0/tests/parity/golden/evaluation/grid_params_plot.pkl +0 -0
  122. misato-0.1.0/tests/parity/golden/evaluation/grid_stability.pkl +0 -0
  123. misato-0.1.0/tests/parity/golden/evaluation/metrics_summary.pkl +0 -0
  124. misato-0.1.0/tests/parity/golden/evaluation/pr_curves.pkl +0 -0
  125. misato-0.1.0/tests/parity/golden/evaluation/pseudo_r2.pkl +0 -0
  126. misato-0.1.0/tests/parity/golden/evaluation/sets_plot.pkl +0 -0
  127. misato-0.1.0/tests/parity/golden/evaluation/threshold_curve.pkl +0 -0
  128. misato-0.1.0/tests/parity/golden/evaluation/train_test.pkl +0 -0
  129. misato-0.1.0/tests/parity/golden/evaluation/variable_frequency.pkl +0 -0
  130. misato-0.1.0/tests/parity/golden/geo/count.pkl +0 -0
  131. misato-0.1.0/tests/parity/golden/geo/count_custom_box.pkl +0 -0
  132. misato-0.1.0/tests/parity/golden/geo/inside_mask.pkl +0 -0
  133. misato-0.1.0/tests/parity/golden/geo/landmark_distances.pkl +0 -0
  134. misato-0.1.0/tests/parity/golden/geo/map_default.pkl +0 -0
  135. misato-0.1.0/tests/parity/golden/geo/map_labels.pkl +0 -0
  136. misato-0.1.0/tests/parity/golden/geo/outside_mask.pkl +0 -0
  137. misato-0.1.0/tests/parity/golden/geo/single_inside.pkl +0 -0
  138. misato-0.1.0/tests/parity/golden/interactive/conditional.pkl +0 -0
  139. misato-0.1.0/tests/parity/golden/interactive/joint_continuous.pkl +0 -0
  140. misato-0.1.0/tests/parity/golden/interactive/joint_continuous_legacy2.pkl +0 -0
  141. misato-0.1.0/tests/parity/golden/interactive/joint_discrete.pkl +0 -0
  142. misato-0.1.0/tests/parity/golden/interactive/joint_discrete_legacy2.pkl +0 -0
  143. misato-0.1.0/tests/parity/golden/interactive/joint_discrete_weights.pkl +0 -0
  144. misato-0.1.0/tests/parity/golden/intervals/beta_exact_equal.pkl +0 -0
  145. misato-0.1.0/tests/parity/golden/intervals/beta_exact_hpdi.pkl +0 -0
  146. misato-0.1.0/tests/parity/golden/intervals/beta_mcmc_equal.pkl +0 -0
  147. misato-0.1.0/tests/parity/golden/intervals/beta_mcmc_hpdi.pkl +0 -0
  148. misato-0.1.0/tests/parity/golden/intervals/gamma_exact_equal.pkl +0 -0
  149. misato-0.1.0/tests/parity/golden/intervals/gamma_exact_hpdi.pkl +0 -0
  150. misato-0.1.0/tests/parity/golden/intervals/gamma_mcmc_equal.pkl +0 -0
  151. misato-0.1.0/tests/parity/golden/intervals/gamma_mcmc_hpdi.pkl +0 -0
  152. misato-0.1.0/tests/parity/golden/intervals/norm_exact_equal.pkl +0 -0
  153. misato-0.1.0/tests/parity/golden/intervals/norm_exact_hpdi.pkl +0 -0
  154. misato-0.1.0/tests/parity/golden/intervals/norm_mcmc_equal.pkl +0 -0
  155. misato-0.1.0/tests/parity/golden/intervals/norm_mcmc_hpdi.pkl +0 -0
  156. misato-0.1.0/tests/parity/golden/intervals/table.pkl +0 -0
  157. misato-0.1.0/tests/parity/golden/intervals/table_plot.pkl +0 -0
  158. misato-0.1.0/tests/parity/golden/missing/matrix.pkl +0 -0
  159. misato-0.1.0/tests/parity/golden/multicollinearity/vif_all.pkl +0 -0
  160. misato-0.1.0/tests/parity/golden/multicollinearity/vif_subset.pkl +0 -0
  161. misato-0.1.0/tests/parity/golden/normality/dagostino.pkl +0 -0
  162. misato-0.1.0/tests/parity/golden/normality/identity_auto.pkl +0 -0
  163. misato-0.1.0/tests/parity/golden/normality/ks.pkl +0 -0
  164. misato-0.1.0/tests/parity/golden/normality/log_scale.pkl +0 -0
  165. misato-0.1.0/tests/parity/golden/normality/log_transform_drop.pkl +0 -0
  166. misato-0.1.0/tests/parity/golden/normality/log_transform_shift.pkl +0 -0
  167. misato-0.1.0/tests/parity/golden/normality/log_transform_signed.pkl +0 -0
  168. misato-0.1.0/tests/parity/golden/normality/shapiro.pkl +0 -0
  169. misato-0.1.0/tests/parity/golden/normality/subsampled.pkl +0 -0
  170. misato-0.1.0/tests/parity/golden/normality/ties.pkl +0 -0
  171. misato-0.1.0/tests/parity/golden/pca/loadings.pkl +0 -0
  172. misato-0.1.0/tests/parity/golden/pca/loadings_pc23.pkl +0 -0
  173. misato-0.1.0/tests/parity/golden/pca/ppca.pkl +0 -0
  174. misato-0.1.0/tests/parity/golden/pca/scree.pkl +0 -0
  175. misato-0.1.0/tests/parity/golden/pca/scree_threshold.pkl +0 -0
  176. misato-0.1.0/tests/parity/golden/regression/coefficients.pkl +0 -0
  177. misato-0.1.0/tests/parity/golden/regression/coefficients_hc3.pkl +0 -0
  178. misato-0.1.0/tests/parity/golden/regression/decisions.pkl +0 -0
  179. misato-0.1.0/tests/parity/golden/regression/f_test.pkl +0 -0
  180. misato-0.1.0/tests/parity/golden/regression/full_report.pkl +0 -0
  181. misato-0.1.0/tests/parity/golden/regression/goodness_of_fit.pkl +0 -0
  182. misato-0.1.0/tests/parity/golden/regression/hypothesis_tests.pkl +0 -0
  183. misato-0.1.0/tests/parity/golden/regression/influence_diagnosis.pkl +0 -0
  184. misato-0.1.0/tests/parity/golden/regression/influence_metrics.pkl +0 -0
  185. misato-0.1.0/tests/parity/golden/regression/qq_plot.pkl +0 -0
  186. misato-0.1.0/tests/parity/golden/regression/residual_se.pkl +0 -0
  187. misato-0.1.0/tests/parity/golden/regression/residuals_plot.pkl +0 -0
  188. misato-0.1.0/tests/parity/golden/regression/significant.pkl +0 -0
  189. misato-0.1.0/tests/parity/test_association.py +138 -0
  190. misato-0.1.0/tests/parity/test_categorical.py +49 -0
  191. misato-0.1.0/tests/parity/test_comparison.py +54 -0
  192. misato-0.1.0/tests/parity/test_correlation.py +115 -0
  193. misato-0.1.0/tests/parity/test_distribution.py +63 -0
  194. misato-0.1.0/tests/parity/test_evaluation.py +194 -0
  195. misato-0.1.0/tests/parity/test_fingerprint.py +32 -0
  196. misato-0.1.0/tests/parity/test_geo.py +55 -0
  197. misato-0.1.0/tests/parity/test_interactive.py +50 -0
  198. misato-0.1.0/tests/parity/test_intervals.py +82 -0
  199. misato-0.1.0/tests/parity/test_missing.py +19 -0
  200. misato-0.1.0/tests/parity/test_multicollinearity.py +54 -0
  201. misato-0.1.0/tests/parity/test_normality.py +62 -0
  202. misato-0.1.0/tests/parity/test_pca.py +97 -0
  203. misato-0.1.0/tests/parity/test_regression.py +126 -0
  204. misato-0.1.0/tests/test_architecture.py +129 -0
  205. misato-0.1.0/tests/test_cache.py +97 -0
  206. misato-0.1.0/tests/test_config/__init__.py +0 -0
  207. misato-0.1.0/tests/test_config/test_options.py +35 -0
  208. misato-0.1.0/tests/test_core/__init__.py +0 -0
  209. misato-0.1.0/tests/test_core/test_binning.py +28 -0
  210. misato-0.1.0/tests/test_core/test_helpers.py +76 -0
  211. misato-0.1.0/tests/test_core/test_transforms.py +61 -0
  212. misato-0.1.0/tests/test_core/test_validation.py +76 -0
  213. misato-0.1.0/tests/test_diagnostics/__init__.py +0 -0
  214. misato-0.1.0/tests/test_diagnostics/test_multicollinearity.py +65 -0
  215. misato-0.1.0/tests/test_diagnostics/test_pca.py +174 -0
  216. misato-0.1.0/tests/test_diagnostics/test_regression.py +264 -0
  217. misato-0.1.0/tests/test_evaluation/__init__.py +0 -0
  218. misato-0.1.0/tests/test_evaluation/test_cross_validation.py +101 -0
  219. misato-0.1.0/tests/test_geo/__init__.py +0 -0
  220. misato-0.1.0/tests/test_geo/test_geo.py +106 -0
  221. misato-0.1.0/tests/test_interactive/__init__.py +0 -0
  222. misato-0.1.0/tests/test_interactive/test_probability.py +67 -0
  223. misato-0.1.0/tests/test_optional.py +47 -0
  224. misato-0.1.0/tests/test_plots/__init__.py +0 -0
  225. misato-0.1.0/tests/test_plots/test_categorical.py +102 -0
  226. misato-0.1.0/tests/test_plots/test_comparison.py +71 -0
  227. misato-0.1.0/tests/test_plots/test_distribution.py +74 -0
  228. misato-0.1.0/tests/test_plots/test_missing.py +20 -0
  229. misato-0.1.0/tests/test_public_api.py +62 -0
  230. misato-0.1.0/tests/test_smoke.py +22 -0
  231. misato-0.1.0/tests/test_stats/__init__.py +0 -0
  232. misato-0.1.0/tests/test_stats/test_association.py +97 -0
  233. misato-0.1.0/tests/test_stats/test_correlation.py +94 -0
  234. misato-0.1.0/tests/test_stats/test_intervals.py +85 -0
  235. misato-0.1.0/tests/test_stats/test_normality.py +126 -0
@@ -0,0 +1,2 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
@@ -0,0 +1,181 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+
110
+ # pdm
111
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
112
+ #pdm.lock
113
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
114
+ # in version control.
115
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
116
+ .pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121
+ __pypackages__/
122
+
123
+ # Celery stuff
124
+ celerybeat-schedule
125
+ celerybeat.pid
126
+
127
+ # SageMath parsed files
128
+ *.sage.py
129
+
130
+ # Environments
131
+ .env
132
+ .venv
133
+ env/
134
+ venv/
135
+ ENV/
136
+ env.bak/
137
+ venv.bak/
138
+
139
+ # Spyder project settings
140
+ .spyderproject
141
+ .spyproject
142
+
143
+ # Rope project settings
144
+ .ropeproject
145
+
146
+ # mkdocs documentation
147
+ /site
148
+
149
+ # mypy
150
+ .mypy_cache/
151
+ .dmypy.json
152
+ dmypy.json
153
+
154
+ # Pyre type checker
155
+ .pyre/
156
+
157
+ # pytype static type analyzer
158
+ .pytype/
159
+
160
+ # Cython debug symbols
161
+ cython_debug/
162
+
163
+ # PyCharm
164
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
167
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
168
+ #.idea/
169
+
170
+ # Ruff stuff:
171
+ .ruff_cache/
172
+
173
+ # PyPI configuration file
174
+ .pypirc
175
+
176
+ # Cursor
177
+ # Cursor is an AI-powered code editor.`.cursorignore` specifies files/directories to
178
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
179
+ # refer to https://docs.cursor.com/context/ignore-files
180
+ .cursorignore
181
+ .cursorindexingignore
@@ -0,0 +1,50 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
5
+ [Semantic Versioning](https://semver.org/).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.1.0] - 2026-12-01
10
+
11
+ ### Added
12
+
13
+ - Ported every notebook helper into the package, each checked against the
14
+ original output (same data and same text) by `tests/parity/`:
15
+ - `plots`: `bars`, `segmented_bars`, `hist`, `faceted_hist`,
16
+ `normality_report`, `boxplot`, `corr_matrix`, `target_correlation`,
17
+ `relevance`, `credible_intervals`, `missing_matrix`, `scree`,
18
+ `loadings_chart`, `ppca_chart`, `residuals_vs_fitted`, `residual_qq`,
19
+ `ols_report`,
20
+ and the cross-validation charts in `plots.evaluation`.
21
+ - `stats`: `normality`, `association`, `correlation`, `relevance`,
22
+ `intervals`, `probability`.
23
+ - `diagnostics`: `vif` (flags VIF > 5), `condition_index`,
24
+ `OLSDiagnostics` and `PCADiagnostics`, whose `report(plot=True)` gives
25
+ every table, value and chart in one call (`OLSReport`: summary text
26
+ equal to the original printout, residual, Q-Q and influence charts;
27
+ `PCAReport`: variance, Kaiser count, loadings, scree and loadings
28
+ charts).
29
+ - `evaluation`: `CVEvaluator` (grouped stratified CV, nested grid search,
30
+ cluster bootstrap).
31
+ - `interactive`: 3D joint and conditional density charts, influence chart.
32
+ - `geo`: bounding-box checks, landmark distances, folium maps.
33
+ - `cache`: content-hashed disk cache.
34
+ - Options registry (`locale`, `cache_dir`), Spanish and English figure text.
35
+ - Architecture tests: layering (computation reaches rendering only through
36
+ lazy imports inside drawing methods), no hex colours outside
37
+ `config/palettes.py`, no global style changes, locale completeness,
38
+ optional-extra hints.
39
+
40
+ ### Fixed
41
+
42
+ - `geo.checks.point_inside` counts the box edges as inside, like the masks.
43
+
44
+ ## [0.0.1]
45
+
46
+ ### Added
47
+
48
+ - Package skeleton: `src/misato/` with the `config`, `_core`, `stats`,
49
+ `diagnostics`, `evaluation`, `plots`, `interactive` and `geo` subpackages,
50
+ packaging in `pyproject.toml`, and an import smoke test.
misato-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Juan Pablo Carrillo Hortua
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
misato-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,149 @@
1
+ Metadata-Version: 2.5
2
+ Name: misato
3
+ Version: 0.1.0
4
+ Summary: Exploratory data analysis, statistical tests and model diagnostics for pandas DataFrames.
5
+ Project-URL: Homepage, https://github.com/juanpablocarrillohortua/misato_data
6
+ Project-URL: Repository, https://github.com/juanpablocarrillohortua/misato_data
7
+ Project-URL: Changelog, https://github.com/juanpablocarrillohortua/misato_data/blob/main/CHANGELOG.md
8
+ Author: Juan Pablo Carrillo Hortua
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: data-visualization,diagnostics,eda,pandas,statistics
12
+ Classifier: Development Status :: 2 - Pre-Alpha
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: Scientific/Engineering :: Visualization
19
+ Classifier: Typing :: Typed
20
+ Requires-Python: >=3.11
21
+ Requires-Dist: joblib>=1.3
22
+ Requires-Dist: matplotlib>=3.8
23
+ Requires-Dist: missingno>=0.5
24
+ Requires-Dist: numpy>=1.26
25
+ Requires-Dist: pandas>=2.1
26
+ Requires-Dist: scipy>=1.11
27
+ Requires-Dist: seaborn>=0.13
28
+ Requires-Dist: statsmodels>=0.14
29
+ Provides-Extra: all
30
+ Requires-Dist: folium>=0.15; extra == 'all'
31
+ Requires-Dist: ipython>=8; extra == 'all'
32
+ Requires-Dist: plotly>=5.18; extra == 'all'
33
+ Requires-Dist: scikit-learn>=1.4; extra == 'all'
34
+ Provides-Extra: dev
35
+ Requires-Dist: build>=1.2; extra == 'dev'
36
+ Requires-Dist: cosmic-ray>=8.3; extra == 'dev'
37
+ Requires-Dist: folium>=0.15; extra == 'dev'
38
+ Requires-Dist: ipython>=8; extra == 'dev'
39
+ Requires-Dist: mypy>=1.10; extra == 'dev'
40
+ Requires-Dist: pandas-stubs>=2.2; extra == 'dev'
41
+ Requires-Dist: plotly>=5.18; extra == 'dev'
42
+ Requires-Dist: pylint>=3; extra == 'dev'
43
+ Requires-Dist: pytest-cov>=5; extra == 'dev'
44
+ Requires-Dist: pytest>=8; extra == 'dev'
45
+ Requires-Dist: radon>=6; extra == 'dev'
46
+ Requires-Dist: ruff>=0.6; extra == 'dev'
47
+ Requires-Dist: scikit-learn>=1.4; extra == 'dev'
48
+ Provides-Extra: geo
49
+ Requires-Dist: folium>=0.15; extra == 'geo'
50
+ Requires-Dist: ipython>=8; extra == 'geo'
51
+ Provides-Extra: interactive
52
+ Requires-Dist: plotly>=5.18; extra == 'interactive'
53
+ Provides-Extra: ml
54
+ Requires-Dist: scikit-learn>=1.4; extra == 'ml'
55
+ Description-Content-Type: text/markdown
56
+
57
+ # misato
58
+
59
+ Exploratory data analysis, statistical tests and model diagnostics for pandas
60
+ DataFrames, with one consistent look and one consistent way of calling things.
61
+
62
+ > **Status:** alpha (0.1.0). Ported from the original notebook helpers;
63
+ > every public function is checked against their output (`tests/parity/`).
64
+
65
+ ## Install
66
+
67
+ ```sh
68
+ pip install misato # core: static plots, stats, diagnostics
69
+ pip install "misato[interactive]" # + plotly charts
70
+ pip install "misato[geo]" # + folium maps
71
+ pip install "misato[ml]" # + scikit-learn (mutual information, CV evaluation)
72
+ pip install "misato[all]" # everything
73
+ ```
74
+
75
+ Python 3.11 or newer.
76
+
77
+ ## Usage
78
+
79
+ ```python
80
+ import misato as ms
81
+
82
+ ms.plots.hist(df, "area") # histogram
83
+ ms.plots.bars(df, "property_type", "is_popular", pct=True) # grouped bars
84
+ ms.plots.normality_report(df, "price", log_transformation=True)
85
+
86
+ report = ms.stats.normality.analyze(df, "area")
87
+ report.test.p_value, report.test.is_normal
88
+
89
+ tests = ms.stats.association.against_target(
90
+ df, "is_popular", ["area", "stratum", "property_type"]
91
+ )
92
+ vif = ms.diagnostics.vif(df.dropna(), "price", ["area", "rooms", "stratum"])
93
+
94
+ ols = ms.diagnostics.OLSDiagnostics(model).report(fitted_rows) # model: sm.OLS(...).fit()
95
+ print(ols) # R², F, RSE, test decisions, influence counts
96
+ ols.residuals_ax, ols.qq_ax, ols.influence_figure # the charts it drew
97
+ pca = ms.diagnostics.PCADiagnostics(fitted_pca, feature_names).report()
98
+ pca.variance, pca.scree_axes, pca.loadings_axes
99
+
100
+ with ms.option_context(locale="en"): # figure text in English (default "es")
101
+ ms.plots.boxplot(df, "area", "property_type")
102
+ ```
103
+
104
+ Charts take the DataFrame first, then column names, and return the
105
+ matplotlib `Axes` (or the panels / figure for multi-panel charts), so you can
106
+ keep customising them or draw into your own figure with `ax=`. Statistics
107
+ return DataFrames or small result objects. Colours, sizes, thresholds and
108
+ the text drawn on figures come from `misato.config`, so you only pass them
109
+ when you want something different. Nothing prints, shows or changes global
110
+ matplotlib settings: reports that draw keep their charts on the result
111
+ (`plot=False` skips them).
112
+
113
+ Slow results can be cached on disk by content:
114
+
115
+ ```python
116
+ from misato.cache import cached
117
+
118
+ cached_vif = cached(cache_dir="cache")(ms.diagnostics.vif)
119
+ ```
120
+
121
+ ## Modules
122
+
123
+ | Module | What it is for |
124
+ |---|---|
125
+ | `misato.config` | Options, theme, colour palettes, thresholds and the text shown on figures |
126
+ | `misato.stats` | Normality, association between variables, correlation, relevance, credible intervals |
127
+ | `misato.diagnostics` | Multicollinearity (VIF), OLS regression diagnostics, PCA |
128
+ | `misato.evaluation` | Cross-validated evaluation of classifiers |
129
+ | `misato.plots` | Static charts: distributions, categories, comparisons, correlation, missing data |
130
+ | `misato.interactive` | Interactive 3D joint and conditional plots, influence chart |
131
+ | `misato.geo` | Coordinate checks, distances to landmarks, maps |
132
+ | `misato.cache` | Disk cache for slow computations |
133
+
134
+ ## Development
135
+
136
+ ```sh
137
+ pip install -e ".[dev]"
138
+ pytest # behaviour, parity and architecture tests
139
+ ruff check src tests
140
+ mypy
141
+ ```
142
+
143
+ `docs/glossary.md` lists the domain terms and maps every function of the
144
+ original helpers to its misato name; `tests/parity/DIFFERENCES.md` records
145
+ every intentional difference from their output.
146
+
147
+ ## License
148
+
149
+ MIT
misato-0.1.0/README.md ADDED
@@ -0,0 +1,93 @@
1
+ # misato
2
+
3
+ Exploratory data analysis, statistical tests and model diagnostics for pandas
4
+ DataFrames, with one consistent look and one consistent way of calling things.
5
+
6
+ > **Status:** alpha (0.1.0). Ported from the original notebook helpers;
7
+ > every public function is checked against their output (`tests/parity/`).
8
+
9
+ ## Install
10
+
11
+ ```sh
12
+ pip install misato # core: static plots, stats, diagnostics
13
+ pip install "misato[interactive]" # + plotly charts
14
+ pip install "misato[geo]" # + folium maps
15
+ pip install "misato[ml]" # + scikit-learn (mutual information, CV evaluation)
16
+ pip install "misato[all]" # everything
17
+ ```
18
+
19
+ Python 3.11 or newer.
20
+
21
+ ## Usage
22
+
23
+ ```python
24
+ import misato as ms
25
+
26
+ ms.plots.hist(df, "area") # histogram
27
+ ms.plots.bars(df, "property_type", "is_popular", pct=True) # grouped bars
28
+ ms.plots.normality_report(df, "price", log_transformation=True)
29
+
30
+ report = ms.stats.normality.analyze(df, "area")
31
+ report.test.p_value, report.test.is_normal
32
+
33
+ tests = ms.stats.association.against_target(
34
+ df, "is_popular", ["area", "stratum", "property_type"]
35
+ )
36
+ vif = ms.diagnostics.vif(df.dropna(), "price", ["area", "rooms", "stratum"])
37
+
38
+ ols = ms.diagnostics.OLSDiagnostics(model).report(fitted_rows) # model: sm.OLS(...).fit()
39
+ print(ols) # R², F, RSE, test decisions, influence counts
40
+ ols.residuals_ax, ols.qq_ax, ols.influence_figure # the charts it drew
41
+ pca = ms.diagnostics.PCADiagnostics(fitted_pca, feature_names).report()
42
+ pca.variance, pca.scree_axes, pca.loadings_axes
43
+
44
+ with ms.option_context(locale="en"): # figure text in English (default "es")
45
+ ms.plots.boxplot(df, "area", "property_type")
46
+ ```
47
+
48
+ Charts take the DataFrame first, then column names, and return the
49
+ matplotlib `Axes` (or the panels / figure for multi-panel charts), so you can
50
+ keep customising them or draw into your own figure with `ax=`. Statistics
51
+ return DataFrames or small result objects. Colours, sizes, thresholds and
52
+ the text drawn on figures come from `misato.config`, so you only pass them
53
+ when you want something different. Nothing prints, shows or changes global
54
+ matplotlib settings: reports that draw keep their charts on the result
55
+ (`plot=False` skips them).
56
+
57
+ Slow results can be cached on disk by content:
58
+
59
+ ```python
60
+ from misato.cache import cached
61
+
62
+ cached_vif = cached(cache_dir="cache")(ms.diagnostics.vif)
63
+ ```
64
+
65
+ ## Modules
66
+
67
+ | Module | What it is for |
68
+ |---|---|
69
+ | `misato.config` | Options, theme, colour palettes, thresholds and the text shown on figures |
70
+ | `misato.stats` | Normality, association between variables, correlation, relevance, credible intervals |
71
+ | `misato.diagnostics` | Multicollinearity (VIF), OLS regression diagnostics, PCA |
72
+ | `misato.evaluation` | Cross-validated evaluation of classifiers |
73
+ | `misato.plots` | Static charts: distributions, categories, comparisons, correlation, missing data |
74
+ | `misato.interactive` | Interactive 3D joint and conditional plots, influence chart |
75
+ | `misato.geo` | Coordinate checks, distances to landmarks, maps |
76
+ | `misato.cache` | Disk cache for slow computations |
77
+
78
+ ## Development
79
+
80
+ ```sh
81
+ pip install -e ".[dev]"
82
+ pytest # behaviour, parity and architecture tests
83
+ ruff check src tests
84
+ mypy
85
+ ```
86
+
87
+ `docs/glossary.md` lists the domain terms and maps every function of the
88
+ original helpers to its misato name; `tests/parity/DIFFERENCES.md` records
89
+ every intentional difference from their output.
90
+
91
+ ## License
92
+
93
+ MIT
@@ -0,0 +1,73 @@
1
+ # Glossary
2
+
3
+ Domain terms used in misato, and the legacy name each public object replaces.
4
+
5
+ ## Terms
6
+
7
+ | Term | Meaning |
8
+ |---|---|
9
+ | **x** | The column whose categories (or bins) form the bars or the horizontal axis. |
10
+ | **hue** | A second column that splits each `x` group into one bar or line per level. |
11
+ | **by** | A category whose levels are compared side by side on one axis (`boxplot`). |
12
+ | **segment** | A column with one small-multiple panel per level (`segmented_bars`). |
13
+ | **norm** | Which total a percentage is taken over: each `x` group, each `hue` level / `segment`, or `all`. |
14
+ | **labels** | Text written on each bar: `none`, `count`, `pct`, or `both`. |
15
+ | **share** | A cell of a frequency table expressed as a percentage of its base total (`_core.tables.shares`). |
16
+ | **locale** | Language of every text drawn on a figure (`es` by default, `en`). |
17
+ | **mode** | How a normality analysis treats the scale: `identity`, `log_scale` (axis only, data untouched) or `log_transformation` (data replaced by log10). |
18
+ | **neg_strategy** | What a log transformation does with values <= 0: `shift`, `signed` or `drop`. |
19
+ | **report** | A computation result a chart draws, e.g. `NormalityReport`. |
20
+ | **kind** | How a column is treated by tests: `categorical`, `discrete` (whole numbers, many values) or `continuous` (`_core.kinds.infer_kind`). |
21
+ | **target / features** | The variable explained and the ones tested against it; statistical functions take `(df, target, features)`. |
22
+ | **threshold** | Probability above which a classifier predicts the positive class. |
23
+ | **fold / outer / inner** | A cross-validation split; with a grid, the search runs in inner folds inside each outer fold (nested CV). |
24
+ | **golden** | The captured legacy output a parity test compares against. |
25
+
26
+ ## Legacy → misato
27
+
28
+ | Legacy | misato |
29
+ |---|---|
30
+ | `fancy_barplot.fancy_bars(df, x, ...)` | `misato.plots.categorical.bars(df, x)` |
31
+ | `fancy_barplot.plot_cat_relation(df, x, hue, ...)` | `misato.plots.categorical.bars(df, x, hue)` |
32
+ | `segmented_bars.segmented_bars(..., norm="segmento" / "barra")` | `misato.plots.categorical.segmented_bars(..., norm="segment" / "x")` |
33
+ | `fancy_hist.fancy_hist(df, x, ...)` | `misato.plots.distribution.hist(df, x)` |
34
+ | `fancy_hist.plot_num_relation(df, x, hue, ...)` | `misato.plots.distribution.hist(df, x, hue)` |
35
+ | `category_vs_numeric_plot.plot_faceted_histograms(df, num_col, cat_col)` | `misato.plots.distribution.faceted_hist(df, x, segment)` |
36
+ | `bivaraite_boxplot.plot_segmented_boxplot(df, num_col, cat_col, ...)` | `misato.plots.comparison.boxplot(df, x, by)` |
37
+ | `triple_plot.normality_report(df, col, ...)` (numbers) | `misato.stats.normality.analyze(df, x).to_dict()` |
38
+ | `triple_plot.normality_report(df, col, ...)["fig"]` | `misato.plots.distribution.normality_report(df, x)` |
39
+ | `cred_intervals.colas_iguales_exacto / hpdi_exacto / colas_iguales_mcmc / hpdi_mcmc` | `misato.stats.intervals.equal_tail / hpdi / equal_tail_mcmc / hpdi_mcmc` |
40
+ | `cred_intervals.credible_intervals(dist, nivel)` | `misato.stats.intervals.credible_intervals(dist, level)` |
41
+ | `cred_intervals.credible_intervals(..., plot=True).attrs["fig"]` | `misato.plots.intervals.credible_intervals(dist, level)` |
42
+ | `fancy_corr_matrix.fancy_corr_matrix(df, cols, method)` | `misato.plots.correlation.corr_matrix(df, cols, method=)` (matrix: `misato.stats.correlation.matrix`) |
43
+ | `corr_vector.plot_target_correlation(df, columns, target_col)` | `misato.plots.correlation.target_correlation(df, target, features)` |
44
+ | `mutual_inf_plot.calcular_correlacion(df, target, predictoras, metodo)` | `misato.stats.correlation.with_target(df, target, features, method=, complete_cases=True)` |
45
+ | `mutual_inf_plot.calcular_informacion_mutua(...)` | `misato.stats.relevance.mutual_information(...)` |
46
+ | `mutual_inf_plot.calcular_score_relevancia(..., pesos)` | `misato.stats.relevance.score(..., weights=)` |
47
+ | `mutual_inf_plot.graficar_score_relevancia(df_score, ...)` | `misato.plots.correlation.relevance(score, ...)` |
48
+ | `cat_cat_dep.hub_pruebas_cat_cat(df, var_base, vars_cat)` | `misato.stats.association.categorical(df, target, features)` |
49
+ | `cat_num_dep.hub_pruebas_num_cat(df, var_num, vars_cat)` | `misato.stats.association.numeric_by_category(df, target, features)` |
50
+ | `target_against_features.test_features_against_target(df, feature_variables, target_variable, tipos=)` | `misato.stats.association.against_target(df, target, features, kinds=)` |
51
+ | `vif_resume.vif_table(df, target_variable, feature_variables, cache_path=...)` | `misato.cache.cached(...)(misato.diagnostics.multicollinearity.vif)(df, target, features)` |
52
+ | `cache.cached(cache_dir=...)` / `cache.content_hash(...)` | `misato.cache.cached(cache_dir=None)` / `misato.cache.content_hash(...)` |
53
+ | `fast_OLS.DiagnosticoOLS(modelo)` | `misato.diagnostics.regression.OLSDiagnostics(model)` |
54
+ | `.tabla_coeficientes / .coeficientes_significativos / .bondad_ajuste / .prueba_f_global / .error_estandar_residual` | `.coefficients / .significant / .goodness_of_fit / .f_test / .residual_standard_error` |
55
+ | `.pruebas_hipotesis / .decisiones / .metricas_influencia / .diagnosticar_influencia_ols(df)` | `.hypothesis_tests / .decisions / .influence_metrics / .influence_table(df)` + `misato.interactive.influence.influence_plot` |
56
+ | `.reporte_completo(df, alpha, hc3)` | `.report(df, alpha=, hc3=, plot=True)` → `OLSReport`: `str(report)` is the summary; `.residuals_ax`, `.qq_ax`, `.influence_figure` are the charts (`plot=False`: values only) |
57
+ | `.grafico_residuales_vs_ajustados / .grafico_qq` | `misato.plots.diagnostics.residuals_vs_fitted(model) / residual_qq(model)` |
58
+ | `pca_plots.plot_scree(model, feature_names, threshold_cum=)` | `misato.plots.diagnostics.scree(model, labels, threshold=)` (+ `misato.diagnostics.pca.explained_variance`, `kaiser_count`) |
59
+ | `pca_plots.plot_loadings(model, feature_names, pc_x, pc_y)` | `misato.diagnostics.pca.loadings(model, names)` + `misato.plots.diagnostics.loadings_chart(...)` |
60
+ | (new) one object per fitted PCA | `misato.diagnostics.PCADiagnostics(model, names)`: `.explained_variance / .kaiser_count / .loadings / .scree / .loadings_chart / .report(plot=True)` → `PCAReport` |
61
+ | `pca_plots.plot_ppca_matrices(W, C_ppca, feature_names)` | `misato.plots.diagnostics.ppca_chart(W, C, names)` (+ `misato.diagnostics.pca.ppca_matrices`) |
62
+ | `evaluador_cv.EvaluadorCV(pipeline, X_train, y_train, umbral, grupos)` | `misato.evaluation.cross_validation.CVEvaluator(pipeline, x, y, threshold, groups)` |
63
+ | `.evaluar_cv / .resumen_metricas / .frecuencia_variables / .coeficientes / .pseudo_r2 / .bootstrap_ic / .ajustar_final` | `.evaluate / .metrics_summary / .feature_frequency / .coefficients / .pseudo_r2 / .bootstrap_ci / .fit_final` |
64
+ | `.mejores_parametros(estabilidad=False / True)` | `.best_params() / .stability()` |
65
+ | `.curvas_pr / .curva_umbral / .comparar_train_test / .matriz_confusion / .grafico_conjuntos / .grafico_parametros` | `misato.plots.evaluation.pr_curves / threshold_curve / train_test_chart / confusion_chart / sets_chart / params_chart` |
66
+ | `join_plots / joint_plots .discrete_plot_joint(df, x_col, y_col, weights=)` | `misato.interactive.joint.discrete_joint(df, x, y, weights)` (table: `misato.stats.probability.joint_distribution`) |
67
+ | `join_plots / joint_plots .continuous_plot_joint(df, x_col, y_col)` | `misato.interactive.joint.continuous_joint(df, x, y)` (grid: `misato.stats.probability.joint_density`) |
68
+ | `conditional_prob.conditional_plot(df, given_col, free_col)` | `misato.interactive.conditional.conditional_surface(df, given, free)` (slices: `misato.stats.probability.conditional_density`) |
69
+ | `geo.BBox / CUNDINAMARCA_BBOX` | `misato.geo.regions.BBox / CUNDINAMARCA` |
70
+ | `geo.inside_bbox_mask / outside_bbox_mask / single_bbox_inside / count_outside_bogota` | `misato.geo.checks.inside_bbox_mask / outside_bbox_mask / point_inside / count_outside` |
71
+ | `geo.add_landmark_distances(df_houses, df_landmarks)` | `misato.geo.distances.landmark_distances(df, landmarks)` |
72
+ | `map_graph.create_map(df, latitude_col, longitude_col, name_col, label_col)` / `show_map` | `misato.geo.maps.create_map(df, lat, lon, name=, label=)` / `show_map` |
73
+ | `missing_data_plot.plot_missing_data(df)` | `misato.plots.missing.missing_matrix(df)` |
@@ -0,0 +1,103 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.24"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "misato"
7
+ dynamic = ["version"]
8
+ description = "Exploratory data analysis, statistical tests and model diagnostics for pandas DataFrames."
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ license = "MIT"
12
+ license-files = ["LICENSE"]
13
+ authors = [{ name = "Juan Pablo Carrillo Hortua" }]
14
+ keywords = ["eda", "statistics", "data-visualization", "pandas", "diagnostics"]
15
+ classifiers = [
16
+ "Development Status :: 2 - Pre-Alpha",
17
+ "Intended Audience :: Science/Research",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ "Programming Language :: Python :: 3.13",
22
+ "Topic :: Scientific/Engineering :: Visualization",
23
+ "Typing :: Typed",
24
+ ]
25
+ dependencies = [
26
+ "numpy>=1.26",
27
+ "pandas>=2.1",
28
+ "matplotlib>=3.8",
29
+ "seaborn>=0.13",
30
+ "scipy>=1.11",
31
+ "statsmodels>=0.14",
32
+ "joblib>=1.3",
33
+ "missingno>=0.5",
34
+ ]
35
+
36
+ [project.urls]
37
+ Homepage = "https://github.com/juanpablocarrillohortua/misato_data"
38
+ Repository = "https://github.com/juanpablocarrillohortua/misato_data"
39
+ Changelog = "https://github.com/juanpablocarrillohortua/misato_data/blob/main/CHANGELOG.md"
40
+
41
+ [project.optional-dependencies]
42
+ interactive = ["plotly>=5.18"]
43
+ geo = ["folium>=0.15", "ipython>=8"]
44
+ ml = ["scikit-learn>=1.4"]
45
+ all = ["misato[interactive,geo,ml]"]
46
+ dev = [
47
+ "misato[all]",
48
+ "pytest>=8",
49
+ "pytest-cov>=5",
50
+ "radon>=6",
51
+ "pylint>=3",
52
+ "cosmic-ray>=8.3",
53
+ "ruff>=0.6",
54
+ "mypy>=1.10",
55
+ "pandas-stubs>=2.2",
56
+ "build>=1.2",
57
+ ]
58
+
59
+ [tool.hatch.version]
60
+ path = "src/misato/__init__.py"
61
+
62
+ [tool.hatch.build.targets.wheel]
63
+ packages = ["src/misato"]
64
+
65
+ [tool.hatch.build.targets.sdist]
66
+ exclude = [".github", "CLAUDE.md", "tools"]
67
+
68
+ [tool.ruff]
69
+ line-length = 88
70
+ target-version = "py311"
71
+ src = ["src", "tests"]
72
+
73
+ [tool.ruff.lint]
74
+ select = ["E", "F", "W", "I", "N", "UP", "B", "SIM", "NPY", "PD", "D"]
75
+ ignore = ["D105", "D107", "D401"]
76
+
77
+ [tool.ruff.lint.isort]
78
+ known-first-party = ["misato", "tests"]
79
+
80
+ [tool.ruff.lint.pydocstyle]
81
+ convention = "numpy"
82
+
83
+ [tool.ruff.lint.per-file-ignores]
84
+ "tests/**" = ["D"]
85
+ "tests/parity/cases.py" = ["E501"]
86
+
87
+ [tool.mypy]
88
+ python_version = "3.11"
89
+ strict = true
90
+ packages = ["misato"]
91
+ mypy_path = "src"
92
+
93
+ [[tool.mypy.overrides]]
94
+ module = ["seaborn.*", "scipy.*", "statsmodels.*", "plotly.*", "folium.*", "sklearn.*", "joblib.*", "missingno.*"]
95
+ ignore_missing_imports = true
96
+
97
+ [tool.pytest.ini_options]
98
+ testpaths = ["tests"]
99
+ addopts = ["--import-mode=importlib", "-ra"]
100
+ filterwarnings = [
101
+ # seaborn 0.13 passes matplotlib's deprecated `vert=` to boxplot; not ours to fix.
102
+ "ignore:vert. bool was deprecated:matplotlib._api.deprecation.MatplotlibDeprecationWarning",
103
+ ]