Skip to content

Conversation

@antznette1
Copy link

Description:

  • Adds xfail tests defining expected behavior for preserving Sparse columns on Parquet/Feather roundtrip.
  • No engine code changes yet; this is to gather API feedback.
  • Proposed API:
    • to_parquet(..., preserve_sparse=False)
    • to_feather(..., preserve_sparse=False)
    • read_parquet(..., preserve_sparse=False)
    • read_feather(..., preserve_sparse=False)
  • Request feedback on:
    • Flag name: preserve_sparse vs preserve_extension_arrays
    • Arrow schema metadata namespacing (e.g., pandas.sparse.*)
    • Parameter placement in IO functions
  • Links:

antznette1 and others added 12 commits November 6, 2025 01:04
…ge for xlsxwriter/openpyxl; keep engine_kwargs semantics intact
- Remove duplicate to_excel function code in generic.py
- Add NotImplementedError for odfpy engine when autofilter=True
- Remove broad exception handling from autofilter implementations
- Add comprehensive tests for nonzero startrow/startcol
- Add tests for MultiIndex columns with merge_cells=True and False
- Improve tests to verify each column has autofilter
- Remove redundant test_to_excel test
- Remove redundant pytest.importorskip from test functions
…port

- Keep ExcelWriter and ExcelFormatter in TYPE_CHECKING for type hints
- Import both at runtime inside to_excel method to avoid circular import
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.

ENH: Optional preservation of Sparse columns in Parquet/Feather via Arrow metadata

2 participants