Skip to content

IntervalIndex nbytes computation #19209

Closed
@TomAugspurger

Description

@TomAugspurger

Currently, it looks like IntervalIndex.nbytes just uses IndexOpsMixin.nbytes

@property
def nbytes(self):
    """ return the number of bytes in the underlying data """
    return self._values.nbytes

Should it instead be self.left.nbytes + self.right.nbytes? This will be faster, and I think more correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    IntervalInterval data type

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions