Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENH]
deep_equals
- clearer return on diffs from dtypes
and `inde…
…x`, relaxation of `MultiIndex` equality check (#5560) This PR improves error messaging in `deep_equals` and makes checks on `pandas` based indices stricter. Changes: * `dtypes` of `pd.DataFrame`-s are now checked explicitly * providing a clearer return on `pd.DataFrame` `dtypes` no being equal * `pd.Index` `dtypes` are now checked explicitly * index equality check is slightly relaxed. `DataFrame.equals` may consider `MultiIndex` as unequal due to irrelevant typing in some `python` versions, so instead we now explicitly check equality in names, values This should help diagnose the `dask` inconsistency in `VectorizedDF.reconstruct` return, I suspect it is the `dtype`. Example of test failure (only on certain python versions) here: #5552 (update: this was due to `MultiIndex` type ambiguity, with the relaxation of the `deep_equals` check this should be fine now) Depends on #5561 which fixes inconsistencies uncovered through the above.
- Loading branch information