Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT-#7401: Implement DataFrame/Series.attrs #7402

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

noloerino
Copy link
Collaborator

What do these changes do?

[STILL A DRAFT] Implement df.attrs by annotating relevant functions with a new @propagate_self_attrs annotation that automatically copies self._attrs if the result is detected to be a new DataFrame/Series.

  • first commit message and PR title follow format outlined here

    NOTE: If you edit the PR title to match this format, you need to add another commit (even if it's empty) or amend your last commit for the CI job that checks the PR title to pick up the new PR title.

  • passes flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
  • passes black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
  • signed commit with git commit -s
  • Resolves BUG: Writes to DataFrame.attrs are not preserved #7401
  • tests added and passing
  • module layout described at docs/development/architecture.rst is up-to-date

@@ -16,6 +16,8 @@
from __future__ import annotations

import abc
import copy
import functools

Check notice

Code scanning / CodeQL

Module is imported with 'import' and 'import from' Note

Module 'functools' is imported with both 'import' and 'import from'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Writes to DataFrame.attrs are not preserved
1 participant