Repository: dask/dask
Pull request #11685 (2025-01-20 22:09:58)

Bump conda-incubator/setup-miniconda from 3.1.0 to 3.1.1
Bumps [conda-incubator/setup-miniconda](https://github.com/conda-incubator/setup-miniconda) from 3.1.0 to 3.1.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/conda-incubator/setup-miniconda/releases">conda-incubator/setup-miniconda's releases</a>.</em></p>
<blockquote>
<h2>Version 3.1.1</h2>
<h3>Fixes</h3>
<ul>
<li><a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/378">#378</a>: Make <code>nodefaults</code> warning more explicit</li>
<li><a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/387">#387</a>: Detect and support Linux ARM runners for both Miniconda and Miniforge</li>
</ul>
<h3>Tasks and Maintenance</h3>
<ul>
<li><a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/374">#374</a>: Bump conda-incubator/setup-miniconda from 3.0.4 to 3.1.0</li>
<li><a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/375">#375</a>: Bump actions/cache from 3 to 4</li>
<li><a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/384">#384</a>: Bump <code>@​actions/tool-cache</code> from 2.0.1 to 2.0.2</li>
<li><a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/386">#386</a>: Fix link to example 14</li>
<li><a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/388">#388</a>: Fix mamba 1.x examples</li>
</ul>
<p><a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/374">#374</a>: <a href="https://redirect.github.com/conda-incubator/setup-miniconda/pull/374">conda-incubator/setup-miniconda#374</a>
<a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/375">#375</a>: <a href="https://redirect.github.com/conda-incubator/setup-miniconda/pull/375">conda-incubator/setup-miniconda#375</a>
<a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/378">#378</a>: <a href="https://redirect.github.com/conda-incubator/setup-miniconda/pull/378">conda-incubator/setup-miniconda#378</a>
<a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/384">#384</a>: <a href="https://redirect.github.com/conda-incubator/setup-miniconda/pull/384">conda-incubator/setup-miniconda#384</a>
<a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/386">#386</a>: <a href="https://redirect.github.com/conda-incubator/setup-miniconda/pull/386">conda-incubator/setup-miniconda#386</a>
<a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/387">#387</a>: <a href="https://redirect.github.com/conda-incubator/setup-miniconda/pull/387">conda-incubator/setup-miniconda#387</a>
<a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/388">#388</a>: <a href="https://redirect.github.com/conda-incubator/setup-miniconda/pull/388">conda-incubator/setup-miniconda#388</a></p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/conda-incubator/setup-miniconda/blob/main/CHANGELOG.md">conda-incubator/setup-miniconda's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/conda-incubator/setup-miniconda/releases/tag/v3.1.1">v3.1.1</a> (2025-01-20)</h2>
<h3>Fixes</h3>
<ul>
<li><a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/378">#378</a>: Make <code>nodefaults</code> warning more explicit</li>
<li><a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/387">#387</a>: Detect and support Linux ARM runners for both Miniconda and Miniforge</li>
</ul>
<h3>Tasks and Maintenance</h3>
<ul>
<li><a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/374">#374</a>: Bump conda-incubator/setup-miniconda from 3.0.4 to 3.1.0</li>
<li><a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/375">#375</a>: Bump actions/cache from 3 to 4</li>
<li><a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/384">#384</a>: Bump <code>@​actions/tool-cache</code> from 2.0.1 to 2.0.2</li>
<li><a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/386">#386</a>: Fix link to example 14</li>
<li><a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/388">#388</a>: Fix mamba 1.x examples</li>
</ul>
<p><a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/374">#374</a>: <a href="https://redirect.github.com/conda-incubator/setup-miniconda/pull/374">conda-incubator/setup-miniconda#374</a>
<a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/375">#375</a>: <a href="https://redirect.github.com/conda-incubator/setup-miniconda/pull/375">conda-incubator/setup-miniconda#375</a>
<a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/378">#378</a>: <a href="https://redirect.github.com/conda-incubator/setup-miniconda/pull/378">conda-incubator/setup-miniconda#378</a>
<a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/384">#384</a>: <a href="https://redirect.github.com/conda-incubator/setup-miniconda/pull/384">conda-incubator/setup-miniconda#384</a>
<a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/386">#386</a>: <a href="https://redirect.github.com/conda-incubator/setup-miniconda/pull/386">conda-incubator/setup-miniconda#386</a>
<a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/387">#387</a>: <a href="https://redirect.github.com/conda-incubator/setup-miniconda/pull/387">conda-incubator/setup-miniconda#387</a>
<a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/388">#388</a>: <a href="https://redirect.github.com/conda-incubator/setup-miniconda/pull/388">conda-incubator/setup-miniconda#388</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/conda-incubator/setup-miniconda/commit/505e6394dae86d6a5c7fbb6e3fb8938e3e863830"><code>505e639</code></a> Prepare 3.1.1 (<a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/389">#389</a>)</li>
<li><a href="https://github.com/conda-incubator/setup-miniconda/commit/ee41d4f8b290a6f3048e4375163c117fb26a7c64"><code>ee41d4f</code></a> Bump <code>@​actions/tool-cache</code> from 2.0.1 to 2.0.2 (<a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/384">#384</a>)</li>
<li><a href="https://github.com/conda-incubator/setup-miniconda/commit/7611e53ebc2c283980bc9e019ac2e7fd66f5b044"><code>7611e53</code></a> Detect and support Linux ARM runners for both Miniconda and Miniforge (<a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/387">#387</a>)</li>
<li><a href="https://github.com/conda-incubator/setup-miniconda/commit/254deeaac4d2fa1dbbbbb82e524158da1a17ef4c"><code>254deea</code></a> Merge pull request <a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/388">#388</a> from conda-incubator/mamba-1x</li>
<li><a href="https://github.com/conda-incubator/setup-miniconda/commit/2ea4cd7454dd33079c73e03fbd05d2c77d99fa96"><code>2ea4cd7</code></a> Do not test mambaforge</li>
<li><a href="https://github.com/conda-incubator/setup-miniconda/commit/1a1de2011cd38a46a37f5a3a6dbb8a39199be507"><code>1a1de20</code></a> husky</li>
<li><a href="https://github.com/conda-incubator/setup-miniconda/commit/6902f2394afa18e585e416a530121f506289c4b1"><code>6902f23</code></a> fix link</li>
<li><a href="https://github.com/conda-incubator/setup-miniconda/commit/6bb0a7dc2351fdec89edced69e08bc253ba85702"><code>6bb0a7d</code></a> revert workarounds for 2024's conda-libmamba-solver</li>
<li><a href="https://github.com/conda-incubator/setup-miniconda/commit/47a6dcf71ac83612ab8577ff24b3d377ea8426ef"><code>47a6dcf</code></a> Unpin mamba</li>
<li><a href="https://github.com/conda-incubator/setup-miniconda/commit/eacf539f0ca2691851e599b2ab8d73ca1ac19f39"><code>eacf539</code></a> Fix link to example 14. (<a href="https://redirect.github.com/conda-incubator/setup-miniconda/issues/386">#386</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/conda-incubator/setup-miniconda/compare/v3.1.0...v3.1.1">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=conda-incubator/setup-miniconda&package-manager=github_actions&previous-version=3.1.0&new-version=3.1.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

github-actions[bot]: ## Unit Test Results
_See [test report](https://dask.github.io/dask/test_report.html) for an extended history of previous test failures. This is useful for diagnosing flaky tests._

     15 files  +     1       15 suites  +1   4h 22m 9s ⏱️ + 12m 15s
 17 140 tests ±     0   15 960 ✅ ±     0   1 180 💤 ±    0  0 ❌ ±0 
211 200 runs  +17 026  194 178 ✅ +15 762  17 022 💤 +1 264  0 ❌ ±0 

Results for commit 8b9032cd. ± Comparison against base commit e04734b4.

[test-results]:data:application/gzip;base64,H4sIAK3UjmcC/03MSw7DIAxF0a1EjDvADgnQzVQEsISaT0VgVHXvJSi/4T223pdRGP3Kng10j4atOaSrXI4mhWWuLVEXKtdU7xIEP/q1Zmvrk+5v+A6fDUFdRiaMxS7wMS5xl5jnbRoBkB99TmsBUp24T0uOeNhtuvZ92S7TFFIJpgbNW7SOiPcgfEsawAitvOzI9AgEcjDoHPv9AdwyfNMaAQAA


Patch:
diff --git a/.github/workflows/additional.yml b/.github/workflows/additional.yml
index 1373fe813..5faaf79b9 100644
--- a/.github/workflows/additional.yml
+++ b/.github/workflows/additional.yml
@@ -16,7 +16,7 @@ jobs:
         uses: actions/checkout@v4.1.5
 
       - name: Setup Conda Environment
-        uses: conda-incubator/setup-miniconda@v3.1.0
+        uses: conda-incubator/setup-miniconda@v3.1.1
         with:
           miniforge-version: latest
           use-mamba: true
@@ -43,7 +43,7 @@ jobs:
         uses: actions/checkout@v4.1.5
 
       - name: Setup Conda
-        uses: conda-incubator/setup-miniconda@v3.1.0
+        uses: conda-incubator/setup-miniconda@v3.1.1
         with:
           miniforge-version: latest
           use-mamba: true
diff --git a/.github/workflows/conda.yml b/.github/workflows/conda.yml
index fe2b4b8e7..e2c402416 100644
--- a/.github/workflows/conda.yml
+++ b/.github/workflows/conda.yml
@@ -32,7 +32,7 @@ jobs:
         with:
           fetch-depth: 0
       - name: Set up Python
-        uses: conda-incubator/setup-miniconda@v3.1.0
+        uses: conda-incubator/setup-miniconda@v3.1.1
         with:
           miniforge-version: latest
           use-mamba: true
diff --git a/.github/workflows/upstream.yml b/.github/workflows/upstream.yml
index d84b70e21..cedfc2d53 100644
--- a/.github/workflows/upstream.yml
+++ b/.github/workflows/upstream.yml
@@ -50,7 +50,7 @@ jobs:
         uses: actions/checkout@v4.1.5
 
       - name: Setup Conda Environment
-        uses: conda-incubator/setup-miniconda@v3.1.0
+        uses: conda-incubator/setup-miniconda@v3.1.1
         with:
           miniforge-version: latest
           use-mamba: true
diff --git a/dask/array/core.py b/dask/array/core.py
index 78e16b0dd..00e522918 100644
--- a/dask/array/core.py
+++ b/dask/array/core.py
@@ -5999,11 +5999,11 @@ def new_da_object(dsk, name, chunks, meta=None, dtype=None):
     Decides the appropriate output class based on the type of `meta` provided.
     """
     if is_dataframe_like(meta) or is_series_like(meta) or is_index_like(meta):
-        from dask.dataframe.core import new_dd_object
+        from dask.dataframe import from_graph
 
         assert all(len(c) == 1 for c in chunks[1:])
         divisions = [None] * (len(chunks[0]) + 1)
-        return new_dd_object(dsk, name, meta, divisions)
+        return from_graph(dict(dsk), meta, divisions, dsk.layers[name].keys(), name)
     else:
         return Array(dsk, name=name, chunks=chunks, meta=meta, dtype=dtype)
 
diff --git a/dask/dataframe/dask_expr/_collection.py b/dask/dataframe/dask_expr/_collection.py
index 3d4994825..8622e20c0 100644
--- a/dask/dataframe/dask_expr/_collection.py
+++ b/dask/dataframe/dask_expr/_collection.py
@@ -4972,10 +4972,18 @@ def from_array(arr, chunksize=50_000, columns=None, meta=None):
     return new_collection(result)
 
 
-def from_graph(*args, **kwargs):
+def from_graph(layer, _meta, divisions, keys, name_prefix):
     from dask.dataframe.dask_expr.io.io import FromGraph
 
-    return new_collection(FromGraph(*args, **kwargs))
+    return new_collection(
+        FromGraph(
+            layer=layer,
+            _meta=_meta,
+            divisions=divisions,
+            keys=keys,
+            name_prefix=name_prefix,
+        )
+    )
 
 
 @dataframe_creation_dispatch.register_inplace("pandas")


Test patch:
diff --git a/.github/workflows/test-report.yaml b/.github/workflows/test-report.yaml
index e84922b58..7b47b90b2 100644
--- a/.github/workflows/test-report.yaml
+++ b/.github/workflows/test-report.yaml
@@ -26,7 +26,7 @@ jobs:
           repository: dask/distributed
 
       - name: Setup Conda Environment
-        uses: conda-incubator/setup-miniconda@v3.1.0
+        uses: conda-incubator/setup-miniconda@v3.1.1
         with:
           miniforge-version: latest
           condarc-file: continuous_integration/condarc
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 943a3c7b4..502a4247d 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -71,7 +71,7 @@ jobs:
           java-version: "11"
 
       - name: Setup Conda Environment
-        uses: conda-incubator/setup-miniconda@v3.1.0
+        uses: conda-incubator/setup-miniconda@v3.1.1
         with:
           miniforge-version: latest
           use-mamba: true
diff --git a/dask/dataframe/tests/test_dataframe.py b/dask/dataframe/tests/test_dataframe.py
index 49bf7a2ab..e9716e420 100644
--- a/dask/dataframe/tests/test_dataframe.py
+++ b/dask/dataframe/tests/test_dataframe.py
@@ -5343,3 +5343,13 @@ def test_dataframe_into_delayed():
     result = delayed(delayed_func)(df)
     assert sum(map(len, result.dask.layers.values())) == 6
     result.compute()
+
+
+def test_array_to_df_conversion():
+    def foo(arr):
+        return pd.DataFrame(arr)
+
+    arr = da.random.random((100, 10), chunks=(10, 10))
+    result = arr.map_blocks(foo, meta=pd.DataFrame(np.random.random((1, 10))))
+    expected = pd.DataFrame(arr.compute())
+    assert_eq(result, expected, check_index=False)