Skip to content

BUG: df.attrs fails with AttributeError: can't set attribute #7652

@sfc-gh-jkew

Description

@sfc-gh-jkew

Modin version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest released version of Modin.

  • I have confirmed this bug exists on the main branch of Modin. (In order to do this you can follow this guide.)

Reproducible Example

import modin.pandas as pd
df = pd.DataFrame({'a':[1,1,2], 'b':[2,3,3], 'c': [4,4,5]})
df.attrs = {"A": [10, 20, 30]}

Issue Description

df.attrs is used for setting additional metadata on a Dataframe or Series
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.attrs.html

This is supported in the Snowflake-backed version of modin, but not with Ray or the native pandas backends.

Expected Behavior

attrs is set

Error Logs

Replace this line with the error backtrace (if applicable).

Installed Versions

Replace this line with the output of pd.show_versions()

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Minor bugs or low-priority feature requestsbug 🦗Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions