Out-of-Core hybrid Apache Arrow/NumPy DataFrame for Python, ML, visualization and exploration of big tabular data at a billion rows per second 🚀
8.23k
stars
590
forks
source link
[BUG-REPORT] isin( ) raises exception while using set as parameter, while pandas OK #2351
Open
Binger-cn opened 1 year ago
Vaex 4.16
vaex.from_arrays(a=[1,2,3]).a.isin( {1,2} ) raises: TypeError: int() argument must be a string, a bytes-like object or a real number, not 'set'
but pandas is OK: vaex.from_arrays(a=[1,2,3]).a.to_pandas_series().isin( {1,2} )
0 True 1 True 2 False dtype: bool
or, turn set into list: vaex.from_arrays(a=[1,2,3]).a.isin( list({1,2}) )
Expression = isin_set(a, var_isin_ordered_set_expression_86dd3c4d70d22... Length: 3 dtype: bool (expression)
0 True 1 True 2 False