Skip to content

Use the resize function or refcheck=False #17182

Closed
@BigAN

Description

@BigAN

use pypy 5.8.0 with pandas 0.20.3

File "/Users/dongjian/work/meituan/instacart/preprocess/data_producer.py", line 37, in
priors_orders_detail = orders.merge(right=priors, how='inner', on='order_id')
File "/usr/local/Cellar/pypy/5.8.0/libexec/site-packages/pandas/core/frame.py", line 4722, in merge
copy=copy, indicator=indicator)
File "/usr/local/Cellar/pypy/5.8.0/libexec/site-packages/pandas/core/reshape/merge.py", line 54, in merge
return op.get_result()
File "/usr/local/Cellar/pypy/5.8.0/libexec/site-packages/pandas/core/reshape/merge.py", line 569, in get_result
join_index, left_indexer, right_indexer = self._get_join_info()
File "/usr/local/Cellar/pypy/5.8.0/libexec/site-packages/pandas/core/reshape/merge.py", line 734, in _get_join_info
right_indexer) = self._get_join_indexers()
File "/usr/local/Cellar/pypy/5.8.0/libexec/site-packages/pandas/core/reshape/merge.py", line 713, in _get_join_indexers
how=self.how)
File "/usr/local/Cellar/pypy/5.8.0/libexec/site-packages/pandas/core/reshape/merge.py", line 982, in _get_join_indexers
llab, rlab, shape = map(list, zip(* map(fkeys, left_keys, right_keys)))
File "/usr/local/Cellar/pypy/5.8.0/libexec/lib_pypy/_functools.py", line 45, in call
return self._func(*(self._args + fargs), **fkeywords)
File "/usr/local/Cellar/pypy/5.8.0/libexec/site-packages/pandas/core/reshape/merge.py", line 1405, in _factorize_keys
llab = rizer.factorize(lk)
File "pandas/_libs/hashtable.pyx", line 102, in pandas._libs.hashtable.Int64Factorizer.factorize (pandas/_libs/hashtable.c:35063)
File "pandas/_libs/hashtable_class_helper.pxi", line 867, in pandas._libs.hashtable.Int64HashTable.get_labels (pandas/_libs/hashtable.c:15602)
File "pandas/_libs/hashtable_class_helper.pxi", line 180, in pandas._libs.hashtable.Int64Vector.resize (pandas/_libs/hashtable.c:5241)
ValueError: cannot resize an array with refcheck=True on PyPy.
Use the resize function or refcheck=False

Metadata

Metadata

Assignees

No one assigned

    Labels

    Compatpandas objects compatability with Numpy or Python functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions