Skip to content

dd.concat fails if data frames do not have any columns #12063

@joshua-gould

Description

@joshua-gould

dd.concat fails if data frames do not have any columns

Minimal Complete Verifiable Example:

import pandas as pd
import dask.dataframe as dd

frames1 = [dd.from_pandas(pd.DataFrame(index=[1, 2, 3], data=dict(a=[1, 2, 3]))) for i
           in
           range(3)]
dd.concat(frames1).compute()  # works
frames1[0].join(frames1[1]).compute()  # works

frames2 = [dd.from_pandas(pd.DataFrame(index=[1, 2, 3])) for i in
           range(3)]
frames2[0].join(frames2[1]).compute()  # works
dd.concat(frames2).compute()  # fails

Anything else we need to know?:

Environment:

  • Dask version: 2025.7.0
  • Python version: 3.12
  • Operating System: Mac
  • Install method pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions