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.
- {lesspython-0.2.0/src/lessPython.egg-info → lesspython-0.3.0}/PKG-INFO +6 -2
- {lesspython-0.2.0 → lesspython-0.3.0}/README.md +5 -1
- {lesspython-0.2.0 → lesspython-0.3.0}/pyproject.toml +1 -1
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/ANOVA.py +5 -5
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/Chart.py +386 -88
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/Correlation.py +2 -2
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/Logit.py +2 -2
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/Regression.py +6 -4
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/X.py +279 -42
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/XY.py +814 -158
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/__init__.py +12 -2
- lesspython-0.3.0/src/lessPy/_themes.py +5007 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/bc_items_plotly.py +31 -18
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/bc_plotly.py +23 -7
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/bubble_plotly.py +17 -2
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/corCFA.py +3 -3
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/corProp.py +2 -2
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/corReflect.py +2 -2
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/corReorder.py +2 -2
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/corScree.py +3 -3
- lesspython-0.3.0/src/lessPy/data/StockPrice.csv +1504 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/details.py +17 -4
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/dn_plotly.py +65 -45
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/freq_poly_plotly.py +12 -5
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/getColors.py +247 -20
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/hier_plotly.py +36 -9
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/hs_plotly.py +16 -4
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plotly_utils.py +78 -9
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plt_mat_plotly.py +74 -2
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plt_time.py +10 -3
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/prob_norm.py +3 -3
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/prob_tcut.py +3 -3
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/prob_znorm.py +3 -1
- lesspython-0.3.0/src/lessPy/rcolors.py +461 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/simCImean.py +3 -3
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/simCLT.py +3 -3
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/simFlips.py +3 -3
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/simMeans.py +3 -3
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/stats_out.py +257 -11
- lesspython-0.3.0/src/lessPy/style.py +160 -0
- lesspython-0.3.0/src/lessPy/sunflower_plotly.py +140 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/ttest.py +5 -5
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/utils.py +43 -6
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/vbs_plotly.py +16 -5
- lesspython-0.3.0/src/lessPy/x_console.py +763 -0
- {lesspython-0.2.0 → lesspython-0.3.0/src/lessPython.egg-info}/PKG-INFO +6 -2
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPython.egg-info/SOURCES.txt +14 -1
- lesspython-0.3.0/tests/test_by_colors.py +96 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_chart.py +74 -14
- lesspython-0.3.0/tests/test_chart_colors.py +64 -0
- lesspython-0.3.0/tests/test_chart_items.py +135 -0
- lesspython-0.3.0/tests/test_chart_ordered_fill.py +50 -0
- lesspython-0.3.0/tests/test_chart_stats.py +90 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_details.py +14 -0
- lesspython-0.3.0/tests/test_getcolors_r_palettes.py +57 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_hier_plotly.py +22 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_stats_out.py +12 -9
- lesspython-0.3.0/tests/test_style.py +95 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_x.py +69 -11
- lesspython-0.3.0/tests/test_x_console.py +260 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_xy.py +155 -16
- lesspython-0.3.0/tests/test_xy_console.py +118 -0
- lesspython-0.2.0/src/lessPy/data/StockPrice.csv +0 -1489
- lesspython-0.2.0/tests/test_chart_items.py +0 -75
- {lesspython-0.2.0 → lesspython-0.3.0}/LICENSE +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/setup.cfg +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/Flows.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/Prop_test.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/VariableLabels.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/anova_rmd.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/corEFA.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/corPrint.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/corRead.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Anova_1way.csv +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Anova_2way.csv +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Anova_rb.csv +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Anova_rbf.csv +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Anova_sp.csv +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/BodyMeas.csv +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Cars93.csv +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Employee.csv +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Employee_lbl.csv +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/FreqTable99.csv +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Jackets.csv +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Learn.csv +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Mach4.csv +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Mach4_lbl.csv +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/Reading.csv +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/data/WeightLoss.csv +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/datasets.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/date_infer.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/dot_plotly.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/logit_rmd.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/order_by.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/pie_plotly.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/pivot.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plt_add.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plt_contour.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plt_contour_facet.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plt_forecast.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plt_plotly.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/plt_smooth.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/profile_plotly.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/radar_plotly.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/reg_rmd.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/rename.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/reshape.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPy/showColors.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPython.egg-info/dependency_links.txt +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPython.egg-info/requires.txt +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/src/lessPython.egg-info/top_level.txt +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_anova.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_bc_plotly.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_bubble_plotly.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_corcfa.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_corefa.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_corprint.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_corprop.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_corread.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_correflect.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_correlation.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_correorder.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_corscree.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_datasets.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_date_infer.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_dot_plotly.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_flows.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_getcolors.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_logit.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_order_by.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_pie_plotly.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_pivot.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_prob_norm.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_prob_tcut.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_prob_znorm.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_profile.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_prop_test.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_radar_plotly.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_regression.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_rename.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_reshape.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_showcolors.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_simcimean.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_simclt.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_simflips.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_simmeans.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_ttest.py +0 -0
- {lesspython-0.2.0 → lesspython-0.3.0}/tests/test_variablelabels.py +0 -0
- {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.
|
|
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.
|
|
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,
|