Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BUG: IntervalTree construction fails for 32bit when n_elements > leaf_size #23440

Open
Labels
32bit32-bit systems Bug IntervalInterval data type
@jschendel

Description

Code Sample, a copy-pastable example if possible

See https://travis-ci.org/MacPython/pandas-wheels/jobs/448674095 for some specific test failures. The basic setup on a 32bit system is along the lines of:

In [2]: left = np.arange(5)
In [3]: tree = pd._libs.interval.IntervalTree(left, left+2, leaf_size=2)
---------------------------------------------------------------------------
TypeError: Cannot cast array data from dtype('int64') to dtype('int32') according to the rule 'safe'

xref #23353 (comment)

Problem description

IntervalTree construction fails for 32bit when n_elements > leaf_size.

Expected Output

I'd expect construction to be successful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    32bit32-bit systems Bug IntervalInterval data type

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /