rnag / rnag/dataclass-wizard

Add optional pandas helpers: `to_dataframe` / `from_dataframe` for flat dataclasses

Open
#232 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

data-science enhancement
Dominant language
Python
Stars
250
Forks
36
PR merge metrics
No merged PRs in 30d

Description

  • Goal: Easy DS integration without “pandas serialization”.

  • API:

    • dataclass_wizard.integrations.pandas.to_dataframe(objs) -> pd.DataFrame
    • ...from_dataframe(cls, df) -> list[cls]
  • Constraints (important):

    • Start with flat fields only (nested objects -> error or stringify; decide explicitly).
  • Acceptance criteria:

    • Optional extra: dataclass-wizard[pandas]
    • Docs + a minimal example in README or integrations page.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named in the issue. Start by reviewing the existing package structure and dependency extras, then define the pandas integration around to_dataframe and from_dataframe for flat dataclasses. Done means the optional pandas extra works, nested-field behavior is explicit, and documentation includes a minimal example.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.