You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When we have a dataframe with multiIndex, cudf will error if the index names are None.
Whereas when to try to read a parquet file with a dataframe having multiIndex, we don't seem to be retrieving it correctly.
Fixes: #6337 , #6740
The actual issue was that cudf was failing to read/write a dataframe for any case other than a RangeIndex/named Multi-Index(all-levels), so this PR revamps index writing and retrieval logic to and from parquet metadata.
This PR:
- [x] Introduces code changes to write & read Index/MultiIndex objects correctly into & from parquet files.
- [x] Adds `step` attribute to `RangeIndex`.
- [x] Fixes issue where a `RangeIndex` with `step` value other than 1 was failing in `cudf.from_pandas`.
- [x] Add & Fix pytests for above changes.
Authors:
- galipremsagar <[email protected]>
- GALI PREM SAGAR <[email protected]>
Approvers:
- Keith Kraus
- Devavret Makkar
- Keith Kraus
URL: #6771
Describe the bug
When we have a dataframe with multiIndex, cudf will error if the index names are
None
.Whereas when to try to read a parquet file with a dataframe having multiIndex, we don't seem to be retrieving it correctly.
Steps/Code to reproduce bug
Follow this guide http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports to craft a minimal bug report. This helps us reproduce the issue you're having and resolve the issue more quickly.
Expected behavior
We should correctly write and retrieve when we have multiIndex.
Environment overview (please complete the following information)
Environment details
Please run and paste the output of the
cudf/print_env.sh
script here, to gather any other relevant environment detailsClick here to see environment details
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: