We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, it looks like IntervalIndex.nbytes just uses IndexOpsMixin.nbytes
IntervalIndex.nbytes
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.
self.left.nbytes + self.right.nbytes
The text was updated successfully, but these errors were encountered:
Should it instead be self.left.nbytes + self.right.nbytes?
That makes more sense to me. Not sure exactly what the use case of nbytes is though, so really just basing this off the docstring description.
nbytes
Sorry, something went wrong.
BUG/PERF: Fixed IntervalIndex.nbytes and itemsize
8bff87c
Avoid materializing the ndarray of Intervals. Just get from left and right instead. Closes pandas-dev#19209
REF: IntervalIndex[IntervalArray]
236df1d
Closes pandas-dev#19209
9b8564f
No branches or pull requests
Currently, it looks like
IntervalIndex.nbytes
just usesIndexOpsMixin.nbytes
Should it instead be
self.left.nbytes + self.right.nbytes
? This will be faster, and I think more correct.The text was updated successfully, but these errors were encountered: