dataclass-wizard icon indicating copy to clipboard operation
dataclass-wizard copied to clipboard

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

Open rnag opened this issue 2 months ago • 0 comments

  • 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.

rnag avatar Dec 21 '25 22:12 rnag