Skip to content

Commit

Permalink
More robustness when dealing with pandas column multi-index.
Browse files Browse the repository at this point in the history
  • Loading branch information
yohplala committed Aug 21, 2024
1 parent 3e841fb commit 02228b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions oups/store/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,14 @@ def check_cmidx(chunk):
Most notably, fastparquet requires names for each level in a Multiindex.
If these are not set, there are set to '', an empty string.
Also, column names have to be tuple of string.
Multiindex is modified in-place.
DataFrame is modified in-place.
Parameters
----------
chunk : DataFrame
DataFrame which multi-index is to check.
DataFrame with a column multi-index to check and possibly adjust.
Returns
-------
Expand Down

0 comments on commit 02228b1

Please sign in to comment.