dataclass-wizard
dataclass-wizard copied to clipboard
Add optional pandas helpers: `to_dataframe` / `from_dataframe` for flat dataclasses
-
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.
- Optional extra: