Skip to content

Length information in error message of sanitize_index #26967

Closed
@vishal-srini-rao

Description

@vishal-srini-rao

It may be helpful for quicker debugging to provide information of data and index lengths in the error message in sanitize_index function:

raise ValueError('Length of values does not match length of index')

The modified code could be:
raise ValueError(f'Length of values {len(data)} does not match length of index {len(index)}')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions