Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,29 @@

Full parity with the R `moderndive` and `infer` packages.

- **Parity with R `moderndive` PR #144**:
- `get_correlation()` now accepts multiple right-hand-side predictors
(`"y ~ x1 + x2"`) — long output by default, `wide=True` for one column per
predictor; a suppressible (`quiet=True`) note points to a full pairwise matrix.
- `get_regression_table()`, `get_regression_points()`, and
`get_regression_summaries()` now accept fitted **`glm()`** models. GLM points
are on the response scale (e.g. probabilities), summaries are GLM-shaped
(`deviance`, `null_deviance`, `aic`, `bic`, `log_lik`, …), and the table gains
an `exponentiate=` argument for odds/rate ratios.
- `get_regression_points()` handles **in-formula transformations**: a
transformed outcome like `np.log(mpg)` is shown on the model scale as
`log_mpg`/`log_mpg_hat`, and transformed predictors (`poly()`, `scale()`,
`I()`) are shown as their original columns rather than leaking basis matrices.
- New **`plot_3d_regression(data, "z ~ x + y")`**: interactive 3D scatter with a
fitted regression plane (plotly).
- New **`View()`**: renders a data frame as an interactive, searchable table via
the optional `itables` package (`pip install "moderndive[view]"`) — the Python
counterpart of R's `DT::datatable()` — with a graceful fallback when itables
isn't installed.
- `geom_categorical_model()` is available as an alias of `gg_categorical_model()`.
- Messages and errors are now beginner-friendly, in the `infer` style (a short
summary line followed by `→` hint bullets); informational notes use a
dedicated, suppressible `ModernDiveMessage` category.
- **`count_missing()`**: a beginner-friendly helper that counts `null` values per
column and returns a tidy `column`/`n_missing` data frame sorted from most to
fewest missing — a gentler alternative to `df.select(pl.all().is_null().sum())`.
Expand Down
Binary file modified doc/_build/html/.doctrees/api.doctree
Binary file not shown.
Binary file modified doc/_build/html/.doctrees/environment.pickle
Binary file not shown.
Binary file modified doc/_build/html/.doctrees/getting-started.doctree
Binary file not shown.
Binary file modified doc/_build/html/.doctrees/guides/confidence-intervals.doctree
Binary file not shown.
Binary file modified doc/_build/html/.doctrees/guides/hypothesis-testing.doctree
Binary file not shown.
Binary file added doc/_build/html/.doctrees/guides/messages.doctree
Binary file not shown.
Binary file modified doc/_build/html/.doctrees/guides/plotting.doctree
Binary file not shown.
Binary file modified doc/_build/html/.doctrees/guides/regression.doctree
Binary file not shown.
Binary file modified doc/_build/html/.doctrees/guides/theory-based.doctree
Binary file not shown.
Binary file modified doc/_build/html/.doctrees/index.doctree
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions doc/_build/html/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
<li class="toctree-l1"><a class="reference internal" href="../guides/regression.html">Regression</a></li>
<li class="toctree-l1"><a class="reference internal" href="../guides/theory-based.html">Theory-based inference</a></li>
<li class="toctree-l1"><a class="reference internal" href="../guides/plotting.html">Plotting: plotly &amp; plotnine</a></li>
<li class="toctree-l1"><a class="reference internal" href="../guides/messages.html">Helpful messages &amp; errors</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Reference</span></p>
<ul>
Expand Down Expand Up @@ -259,6 +260,7 @@ <h1>All modules for which code is available</h1>
<ul><li><a href="moderndive/plots/models.html">moderndive.plots.models</a></li>
</ul><li><a href="moderndive/sampling.html">moderndive.sampling</a></li>
<li><a href="moderndive/theory.html">moderndive.theory</a></li>
<li><a href="moderndive/view.html">moderndive.view</a></li>
</ul>
</article>
</div>
Expand Down
115 changes: 89 additions & 26 deletions doc/_build/html/_modules/moderndive/correlation.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions doc/_build/html/_modules/moderndive/data.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
<li class="toctree-l1"><a class="reference internal" href="../../guides/regression.html">Regression</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../guides/theory-based.html">Theory-based inference</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../guides/plotting.html">Plotting: plotly &amp; plotnine</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../guides/messages.html">Helpful messages &amp; errors</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Reference</span></p>
<ul>
Expand Down
1 change: 1 addition & 0 deletions doc/_build/html/_modules/moderndive/infer/core.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
<li class="toctree-l1"><a class="reference internal" href="../../../guides/regression.html">Regression</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/theory-based.html">Theory-based inference</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/plotting.html">Plotting: plotly &amp; plotnine</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/messages.html">Helpful messages &amp; errors</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Reference</span></p>
<ul>
Expand Down
1 change: 1 addition & 0 deletions doc/_build/html/_modules/moderndive/infer/intervals.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
<li class="toctree-l1"><a class="reference internal" href="../../../guides/regression.html">Regression</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/theory-based.html">Theory-based inference</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/plotting.html">Plotting: plotly &amp; plotnine</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/messages.html">Helpful messages &amp; errors</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Reference</span></p>
<ul>
Expand Down
1 change: 1 addition & 0 deletions doc/_build/html/_modules/moderndive/infer/pvalue.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
<li class="toctree-l1"><a class="reference internal" href="../../../guides/regression.html">Regression</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/theory-based.html">Theory-based inference</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/plotting.html">Plotting: plotly &amp; plotnine</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/messages.html">Helpful messages &amp; errors</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Reference</span></p>
<ul>
Expand Down
1 change: 1 addition & 0 deletions doc/_build/html/_modules/moderndive/infer/theoretical.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
<li class="toctree-l1"><a class="reference internal" href="../../../guides/regression.html">Regression</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/theory-based.html">Theory-based inference</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/plotting.html">Plotting: plotly &amp; plotnine</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/messages.html">Helpful messages &amp; errors</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Reference</span></p>
<ul>
Expand Down
1 change: 1 addition & 0 deletions doc/_build/html/_modules/moderndive/infer/viz.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
<li class="toctree-l1"><a class="reference internal" href="../../../guides/regression.html">Regression</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/theory-based.html">Theory-based inference</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/plotting.html">Plotting: plotly &amp; plotnine</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/messages.html">Helpful messages &amp; errors</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Reference</span></p>
<ul>
Expand Down
1 change: 1 addition & 0 deletions doc/_build/html/_modules/moderndive/infer/wrappers.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
<li class="toctree-l1"><a class="reference internal" href="../../../guides/regression.html">Regression</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/theory-based.html">Theory-based inference</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/plotting.html">Plotting: plotly &amp; plotnine</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../guides/messages.html">Helpful messages &amp; errors</a></li>
</ul>
<p class="caption" role="heading"><span class="caption-text">Reference</span></p>
<ul>
Expand Down
Loading