Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#7652·modin

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

Author: sfc-gh-jkewCreated Aug 26, 2025Updated Feb 16, 2026
Labelsbug 🦗P2

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

python
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

python-traceback

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

Installed Versions

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

Source: modin-project/modin

View original on GitHubView discussion on GitHub