Closed
Description
This currently densifies:
pandas/pandas/core/sparse/array.py
Lines 651 to 659 in 56d8e78
I haven't investigated it, but we should be able to do a boolean mask as an
intersection sp_values on self
and key
. If key
is SparseDtype[bool, False]
(i.e. False is the fill_value) this should be a lot faster.