Skip to content

Commit 0d81850

Browse files
committed
Pushing the docs to dev/ for branch: main, commit 0f42a7ebd36cf6283b04be00548f9d7be87e0308
1 parent dc71131 commit 0d81850

226 files changed

Lines changed: 46586 additions & 46597 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dev/CHANGES.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,14 +639,17 @@ <h3>Bug Fixes<a class="headerlink" href="#bug-fixes" title="Link to this heading
639639
<li><p><code class="xref py py-class docutils literal notranslate"><span class="pre">CheckInputDataFrame</span></code> no longer collects Polars LazyFrames automatically;
640640
a <code class="docutils literal notranslate"><span class="pre">TypeError</span></code> is now raised instead, consistent with the rest of the library.
641641
<a class="reference external" href="https://github.com/skrub-data/skrub/pull/1941">#1941</a> by <a class="reference external" href="https://github.com/MuditAtrey">Mudit Atrey</a>.</p></li>
642+
<li><p><code class="xref py py-func docutils literal notranslate"><span class="pre">fetch_employee_salaries()</span></code> now correctly writes the train and test
643+
split CSV files to their respective paths when <code class="docutils literal notranslate"><span class="pre">split</span></code> is specified.
644+
<a class="reference external" href="https://github.com/skrub-data/skrub/pull/1964">#1964</a> by <a class="reference external" href="https://github.com/MuditAtrey">MuditAtrey</a>.</p></li>
642645
</ul>
643646
</section>
644647
<section id="documentation">
645648
<h3>Documentation<a class="headerlink" href="#documentation" title="Link to this heading">#</a></h3>
646649
<ul class="simple">
647650
<li><p>Updated gallery examples to load datasets from their file paths using
648651
<code class="docutils literal notranslate"><span class="pre">pd.read_csv()</span></code>, following the pattern established in <a class="reference external" href="https://github.com/skrub-data/skrub/pull/1852">#1852</a>.
649-
<a class="reference external" href="https://github.com/skrub-data/skrub/pull/1940">#1940</a> by <a class="reference external" href="https://github.com/MuditAtrey">MuditAtrey</a>.</p></li>
652+
<a class="reference external" href="https://github.com/skrub-data/skrub/pull/1940">#1940</a> and <a class="reference external" href="https://github.com/skrub-data/skrub/pull/1964">#1964</a> by <a class="reference external" href="https://github.com/MuditAtrey">MuditAtrey</a>.</p></li>
650653
</ul>
651654
</section>
652655
</section>
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.

dev/_downloads/69ce25e19887c7fe48cc355a0e88a885/1110_data_ops_intro.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,13 @@
4646
# By default, the |fetch_employee_salaries| function returns the training set.
4747
# We will load the test set later, to evaluate our model on unseen data.
4848

49+
import pandas as pd
50+
4951
from skrub.datasets import fetch_employee_salaries
5052

51-
training_data = fetch_employee_salaries(split="train").employee_salaries
53+
training_data = pd.read_csv(
54+
fetch_employee_salaries(split="train").employee_salaries_path
55+
)
5256

5357
# %%
5458
# We can take a look at the dataset using the |TableReport|.
@@ -160,7 +164,7 @@
160164
# case, "data").
161165
#
162166
# We can now get the test set of the employee salaries dataset:
163-
unseen_data = fetch_employee_salaries(split="test").employee_salaries
167+
unseen_data = pd.read_csv(fetch_employee_salaries(split="test").employee_salaries_path)
164168

165169
# %%
166170
# Then, we can use the loaded model to make predictions on the unseen data by
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)