Closed
Description
It may be helpful for quicker debugging to provide information of data and index lengths in the error message in sanitize_index function:
pandas/pandas/core/internals/construction.py
Line 516 in 2115bf3
The modified code could be:
raise ValueError(f'Length of values {len(data)} does not match length of index {len(index)}')