Skip to content

pandas nightly is broken #12337

Closed
Closed

Description

@crusaderky

pandas nightly CI has started failing due to new deprecations:

FAILED dask/bag/tests/test_bag.py::test_to_dataframe - pandas.errors.Pandas4Warning: The default value of 'equiv' for the `exact` parameter is deprecated and will be changed to 'True' in a future version. Please set exact to the desired value to avoid seeing this warning
FAILED dask/dataframe/dask_expr/tests/test_datetime.py::test_datetime_accessor_properties[dayofweek] - pandas.errors.Pandas4Warning: DatetimeIndex.dayofweek is deprecated and will be removed in a future version. Use DatetimeIndex.day_of_week instead.
FAILED dask/dataframe/dask_expr/tests/test_datetime.py::test_datetime_accessor_properties[dayofyear] - pandas.errors.Pandas4Warning: DatetimeIndex.dayofyear is deprecated and will be removed in a future version. Use DatetimeIndex.day_of_year instead.
FAILED dask/dataframe/dask_expr/tests/test_datetime.py::test_datetime_accessor_properties[daysinmonth] - pandas.errors.Pandas4Warning: DatetimeIndex.daysinmonth is deprecated and will be removed in a future version. Use DatetimeIndex.days_in_month instead.
FAILED dask/dataframe/dask_expr/tests/test_datetime.py::test_datetime_accessor_properties[weekday] - pandas.errors.Pandas4Warning: DatetimeIndex.weekday is deprecated and will be removed in a future version. Use DatetimeIndex.day_of_week instead.
FAILED dask/dataframe/dask_expr/tests/test_shuffle.py::test_set_index_numeric_columns - pandas.errors.Pandas4Warning: The default value of 'equiv' for the `exact` parameter is deprecated and will be changed to 'True' in a future version. Please set exact to the desired value to avoid seeing this warning
FAILED dask/dataframe/io/tests/test_json.py::test_read_json_fkeyword[json] - pandas.errors.Pandas4Warning: An error occurred while calling the read_json method registered to the pandas backend.
Original Message: Passing a list to DataFrame.from_dict is deprecated. Use the DataFrame constructor instead.
FAILED dask/dataframe/io/tests/test_json.py::test_read_json_meta[values] - pandas.errors.Pandas4Warning: The default value of 'equiv' for the `exact` parameter is deprecated and will be changed to 'True' in a future version. Please set exact to the desired value to avoid seeing this warning
FAILED dask/dataframe/tests/test_dataframe.py::test_cumulative_empty_partitions[func2] - [XPASS(strict)] ValueError: Can only compare identically-labeled Series objects
FAILED dask/dataframe/tests/test_dataframe.py::test_cumulative_empty_partitions[func3] - [XPASS(strict)] ValueError: Can only compare identically-labeled Series objects
FAILED dask/dataframe/tests/test_dataframe.py::test_apply - pandas.errors.Pandas4Warning: The default value of 'equiv' for the `exact` parameter is deprecated and will be changed to 'True' in a future version. Please set exact to the desired value to avoid seeing this warning
FAILED dask/dataframe/tests/test_shuffle.py::test_set_index_drop[True] - pandas.errors.Pandas4Warning: The default value of 'equiv' for the `exact` parameter is deprecated and will be changed to 'True' in a future version. Please set exact to the desired value to avoid seeing this warning
FAILED dask/dataframe/tests/test_shuffle.py::test_set_index_drop[False] - pandas.errors.Pandas4Warning: The default value of 'equiv' for the `exact` parameter is deprecated and will be changed to 'True' in a future version. Please set exact to the desired value to avoid seeing this warning

Activity

  1. added
    needs triage
    on Apr 2, 2026
  2. added
    good second issue
    p2
    deprecation
    good first issue
    and removed
    needs triage
    good second issue
    on Apr 2, 2026
  3. changed the title [-]pandas nightly is broken[/-] [+]pandas nightly is broken (mostly trivial)[/+] on Apr 2, 2026
  4. crusaderky commented on May 5, 2026

    @crusaderky
    CollaboratorAuthor

    Outstanding failures revolving around PyArrow dtypes:

    FAILED dask/dataframe/dask_expr/tests/test_collection.py::test_add_prefix - AssertionError: dtype('int64') != <StringDtype(na_value=nan)>
    FAILED dask/dataframe/dask_expr/tests/test_collection.py::test_add_suffix - AssertionError: dtype('int64') != <StringDtype(na_value=nan)>
    
    FAILED dask/dataframe/tests/test_dataframe.py::test_series_map - AssertionError: Attributes of Series are different
    Attribute "dtype" are different
    [left]:  int64
    [right]: int64[pyarrow]
    
    FAILED dask/dataframe/dask_expr/tests/test_collection.py::test_series_map_meta - AssertionError: Attributes of Series are different
    Attribute "dtype" are different
    [left]:  float64
    [right]: double[pyarrow]
    

    Looking at Pandas' changelog, this looks relevant: pandas-dev/pandas#64762

    Additional failure:

    FAILED dask/dataframe/dask_expr/tests/test_string_accessor.py::test_string_accessor - TypeError: unhashable type: 'list'
    

    This looks like an upstream regression. Reported: pandas-dev/pandas#65469

  5. changed the title [-]pandas nightly is broken (mostly trivial)[/-] [+]pandas nightly is broken[/+] on May 5, 2026
  6. removed
    good first issue
    deprecation
    on May 5, 2026
  7. crusaderky commented on May 28, 2026

    @crusaderky
    CollaboratorAuthor

    One final error:

    dask/dataframe/dask_expr/tests/test_collection.py::test_series_map_meta: AssertionError: Attributes of Series are different
    
    Attribute "dtype" are different
    [left]:  float64
    [right]: double[pyarrow]
    dask/dataframe/tests/test_dataframe.py::test_series_map[False-False-1-1]: AssertionError: Attributes of Series are different
    
    Attribute "dtype" are different
    [left]:  int64
    [right]: int64[pyarrow]
    dask/dataframe/tests/test_dataframe.py::test_series_map[True-False-1-1]: AssertionError: Attributes of Series are different
    
    Attribute "dtype" are different
    [left]:  int64
    [right]: int64[pyarrow]
    dask/dataframe/tests/test_dataframe.py::test_series_map[False-True-1-1]: AssertionError: Attributes of Series are different
    
    Attribute "dtype" are different
    [left]:  int64
    [right]: int64[pyarrow]
    dask/dataframe/tests/test_dataframe.py::test_series_map[True-True-1-1]: AssertionError: Attributes of Series are different
    
    Attribute "dtype" are different
    [left]:  int64
    [right]: int64[pyarrow]
    

    this is actually a set of failures of Series.map, already present vs. pandas 3.0, in all the corner cases where pandas changes the dtype of the output depending on the data (more or less arbitrarily).

    Pandas' behaviour is not healthy: pandas-dev/pandas#65735
    and Dask is outright broken in these cases.
    I'm working on some sort of mitigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dataframep2upstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions