lessPython 0.2.0__tar.gz → 0.3.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 (149) hide show
  1. {lesspython-0.2.0/src/lessPython.egg-info → lesspython-0.3.0}/PKG-INFO +6 -2
  2. {lesspython-0.2.0 → lesspython-0.3.0}/README.md +5 -1
  3. {lesspython-0.2.0 → lesspython-0.3.0}/pyproject.toml +1 -1
  4. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/ANOVA.py +5 -5
  5. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/Chart.py +386 -88
  6. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/Correlation.py +2 -2
  7. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/Logit.py +2 -2
  8. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/Regression.py +6 -4
  9. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/X.py +279 -42
  10. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/XY.py +814 -158
  11. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/__init__.py +12 -2
  12. lesspython-0.3.0/src/lessPy/_themes.py +5007 -0
  13. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/bc_items_plotly.py +31 -18
  14. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/bc_plotly.py +23 -7
  15. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/bubble_plotly.py +17 -2
  16. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/corCFA.py +3 -3
  17. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/corProp.py +2 -2
  18. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/corReflect.py +2 -2
  19. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/corReorder.py +2 -2
  20. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/corScree.py +3 -3
  21. lesspython-0.3.0/src/lessPy/data/StockPrice.csv +1504 -0
  22. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/details.py +17 -4
  23. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/dn_plotly.py +65 -45
  24. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/freq_poly_plotly.py +12 -5
  25. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/getColors.py +247 -20
  26. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/hier_plotly.py +36 -9
  27. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/hs_plotly.py +16 -4
  28. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plotly_utils.py +78 -9
  29. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plt_mat_plotly.py +74 -2
  30. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plt_time.py +10 -3
  31. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/prob_norm.py +3 -3
  32. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/prob_tcut.py +3 -3
  33. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/prob_znorm.py +3 -1
  34. lesspython-0.3.0/src/lessPy/rcolors.py +461 -0
  35. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/simCImean.py +3 -3
  36. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/simCLT.py +3 -3
  37. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/simFlips.py +3 -3
  38. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/simMeans.py +3 -3
  39. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/stats_out.py +257 -11
  40. lesspython-0.3.0/src/lessPy/style.py +160 -0
  41. lesspython-0.3.0/src/lessPy/sunflower_plotly.py +140 -0
  42. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/ttest.py +5 -5
  43. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/utils.py +43 -6
  44. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/vbs_plotly.py +16 -5
  45. lesspython-0.3.0/src/lessPy/x_console.py +763 -0
  46. {lesspython-0.2.0 → lesspython-0.3.0/src/lessPython.egg-info}/PKG-INFO +6 -2
  47. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPython.egg-info/SOURCES.txt +14 -1
  48. lesspython-0.3.0/tests/test_by_colors.py +96 -0
  49. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_chart.py +74 -14
  50. lesspython-0.3.0/tests/test_chart_colors.py +64 -0
  51. lesspython-0.3.0/tests/test_chart_items.py +135 -0
  52. lesspython-0.3.0/tests/test_chart_ordered_fill.py +50 -0
  53. lesspython-0.3.0/tests/test_chart_stats.py +90 -0
  54. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_details.py +14 -0
  55. lesspython-0.3.0/tests/test_getcolors_r_palettes.py +57 -0
  56. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_hier_plotly.py +22 -0
  57. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_stats_out.py +12 -9
  58. lesspython-0.3.0/tests/test_style.py +95 -0
  59. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_x.py +69 -11
  60. lesspython-0.3.0/tests/test_x_console.py +260 -0
  61. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_xy.py +155 -16
  62. lesspython-0.3.0/tests/test_xy_console.py +118 -0
  63. lesspython-0.2.0/src/lessPy/data/StockPrice.csv +0 -1489
  64. lesspython-0.2.0/tests/test_chart_items.py +0 -75
  65. {lesspython-0.2.0 → lesspython-0.3.0}/LICENSE +0 -0
  66. {lesspython-0.2.0 → lesspython-0.3.0}/setup.cfg +0 -0
  67. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/Flows.py +0 -0
  68. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/Prop_test.py +0 -0
  69. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/VariableLabels.py +0 -0
  70. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/anova_rmd.py +0 -0
  71. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/corEFA.py +0 -0
  72. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/corPrint.py +0 -0
  73. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/corRead.py +0 -0
  74. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Anova_1way.csv +0 -0
  75. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Anova_2way.csv +0 -0
  76. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Anova_rb.csv +0 -0
  77. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Anova_rbf.csv +0 -0
  78. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Anova_sp.csv +0 -0
  79. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/BodyMeas.csv +0 -0
  80. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Cars93.csv +0 -0
  81. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Employee.csv +0 -0
  82. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Employee_lbl.csv +0 -0
  83. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/FreqTable99.csv +0 -0
  84. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Jackets.csv +0 -0
  85. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Learn.csv +0 -0
  86. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Mach4.csv +0 -0
  87. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Mach4_lbl.csv +0 -0
  88. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Reading.csv +0 -0
  89. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/WeightLoss.csv +0 -0
  90. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/datasets.py +0 -0
  91. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/date_infer.py +0 -0
  92. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/dot_plotly.py +0 -0
  93. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/logit_rmd.py +0 -0
  94. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/order_by.py +0 -0
  95. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/pie_plotly.py +0 -0
  96. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/pivot.py +0 -0
  97. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plt_add.py +0 -0
  98. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plt_contour.py +0 -0
  99. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plt_contour_facet.py +0 -0
  100. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plt_forecast.py +0 -0
  101. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plt_plotly.py +0 -0
  102. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plt_smooth.py +0 -0
  103. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/profile_plotly.py +0 -0
  104. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/radar_plotly.py +0 -0
  105. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/reg_rmd.py +0 -0
  106. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/rename.py +0 -0
  107. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/reshape.py +0 -0
  108. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/showColors.py +0 -0
  109. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPython.egg-info/dependency_links.txt +0 -0
  110. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPython.egg-info/requires.txt +0 -0
  111. {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPython.egg-info/top_level.txt +0 -0
  112. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_anova.py +0 -0
  113. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_bc_plotly.py +0 -0
  114. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_bubble_plotly.py +0 -0
  115. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_corcfa.py +0 -0
  116. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_corefa.py +0 -0
  117. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_corprint.py +0 -0
  118. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_corprop.py +0 -0
  119. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_corread.py +0 -0
  120. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_correflect.py +0 -0
  121. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_correlation.py +0 -0
  122. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_correorder.py +0 -0
  123. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_corscree.py +0 -0
  124. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_datasets.py +0 -0
  125. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_date_infer.py +0 -0
  126. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_dot_plotly.py +0 -0
  127. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_flows.py +0 -0
  128. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_getcolors.py +0 -0
  129. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_logit.py +0 -0
  130. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_order_by.py +0 -0
  131. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_pie_plotly.py +0 -0
  132. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_pivot.py +0 -0
  133. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_prob_norm.py +0 -0
  134. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_prob_tcut.py +0 -0
  135. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_prob_znorm.py +0 -0
  136. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_profile.py +0 -0
  137. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_prop_test.py +0 -0
  138. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_radar_plotly.py +0 -0
  139. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_regression.py +0 -0
  140. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_rename.py +0 -0
  141. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_reshape.py +0 -0
  142. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_showcolors.py +0 -0
  143. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_simcimean.py +0 -0
  144. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_simclt.py +0 -0
  145. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_simflips.py +0 -0
  146. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_simmeans.py +0 -0
  147. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_ttest.py +0 -0
  148. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_variablelabels.py +0 -0
  149. {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_vbs_plotly.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lessPython
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Python port of R's lessR: analytic-view visualizations, statistical models, and data utilities, rendered with plotly
5
5
  Author-email: "David W. Gerbing" <gerbing@pdx.edu>
6
6
  License-Expression: GPL-2.0-or-later
@@ -113,7 +113,11 @@ of functions, grouped by category for navigation:
113
113
 
114
114
  The inferential functions print their analysis as in lessR and
115
115
  also return a results object whose numeric fields and plotly
116
- figures (in `.plots`) are available for programmatic use.
116
+ figures (in `.plots`) are available for programmatic use. In a
117
+ notebook, such as Jupyter or Colab, the figures also display
118
+ when the analysis runs, even when the result is assigned, as
119
+ `r = lp.Regression(...)`. From a script, show one with
120
+ `r.plots["scatter"].show()`.
117
121
 
118
122
  ## Development install
119
123
 
@@ -76,7 +76,11 @@ of functions, grouped by category for navigation:
76
76
 
77
77
  The inferential functions print their analysis as in lessR and
78
78
  also return a results object whose numeric fields and plotly
79
- figures (in `.plots`) are available for programmatic use.
79
+ figures (in `.plots`) are available for programmatic use. In a
80
+ notebook, such as Jupyter or Colab, the figures also display
81
+ when the analysis runs, even when the result is assigned, as
82
+ `r = lp.Regression(...)`. From a script, show one with
83
+ `r.plots["scatter"].show()`.
80
84
 
81
85
  ## Development install
82
86
 
@@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
12
12
 
13
13
  [project]
14
14
  name = "lessPython"
15
- version = "0.2.0"
15
+ version = "0.3.0"
16
16
  description = "Python port of R's lessR: analytic-view visualizations, statistical models, and data utilities, rendered with plotly"
17
17
  authors = [{ name = "David W. Gerbing", email = "gerbing@pdx.edu" }]
18
18
  readme = "README.md"
@@ -25,7 +25,7 @@ from .plotly_utils import (
25
25
  BASE_COLORS, axis_cat, axis_format, axis_num, make_trans,
26
26
  plot_border, plotly_style, to_hex, x_grid)
27
27
  from .Regression import _getdigits, _prntbl
28
- from .utils import fmt, get_column, get_option, pretty
28
+ from .utils import fmt, get_column, get_option, pretty, show_plots
29
29
 
30
30
 
31
31
  class ANOVAResults:
@@ -384,14 +384,14 @@ def _oneway(fit, yv, gv, y_name, x_name, levels, n_keep, d,
384
384
  plots["means"] = _anova_means_plot(
385
385
  yv, gv, y_name, x_name, levels, jitter_x, d)
386
386
 
387
- return ANOVAResults(
387
+ return show_plots(ANOVAResults(
388
388
  formula=formula, design="oneway", n_obs=n_obs,
389
389
  n_keep=n_keep, digits_d=d, response=y_name,
390
390
  factors=[x_name], descriptive=desc, grand_mean=grand,
391
391
  anova=tbl,
392
392
  effects={"R_squared": rsq, "R_sq_adjusted": rsq_adj,
393
393
  "omega_squared": omsq, "cohen_f": cohen_f},
394
- tukey=tukey, plots=plots)
394
+ tukey=tukey, plots=plots))
395
395
 
396
396
 
397
397
  def _anova_means_plot(yv, gv, y_name, x_name, levels, jitter_x,
@@ -611,12 +611,12 @@ def _twoway(fit, yv, fvals, y_name, facs, flevs, n_keep, d,
611
611
  x1v, np.asarray(fit.fittedvalues), x2v,
612
612
  "Fitted", f1, f2, l1, l2, d, "Fitted Values")
613
613
 
614
- return ANOVAResults(
614
+ return show_plots(ANOVAResults(
615
615
  formula=formula, design=design, n_obs=n_obs,
616
616
  n_keep=n_keep, digits_d=d, response=y_name,
617
617
  factors=[f1, f2], cell_n=cell_n,
618
618
  marginal_means={f1: m1, f2: m2}, grand_mean=grand,
619
- anova=t, effects=eff, tukey=tukey, plots=plots)
619
+ anova=t, effects=eff, tukey=tukey, plots=plots))
620
620
 
621
621
 
622
622
  def _cat_line_fig(title, x_name, y_name, levels_x, series, d,