Skip to content

Commit

Permalink
Only mask value dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Apr 7, 2020
1 parent 63ce774 commit 456fb74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion holoviews/core/data/pandas.py
Expand Up @@ -263,7 +263,8 @@ def reindex(cls, dataset, kdims=None, vdims=None):
@classmethod
def mask(cls, dataset, mask, mask_value=np.nan):
masked = dataset.data.copy()
masked[mask] = mask_value
cols = [vd.name for vd in dataset.vdims]
masked.loc[mask, cols] = mask_value
return masked


Expand Down

0 comments on commit 456fb74

Please sign in to comment.