Skip to content

Commit

Permalink
Add pipeline support for Dataset.map
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Sep 18, 2019
1 parent 7404723 commit 2adf704
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions holoviews/core/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

from .. import util
from ..accessors import Redim
from ..dimension import Dimension, process_dimensions, Dimensioned
from ..dimension import (
Dimension, process_dimensions, Dimensioned, LabelledData
)
from ..element import Element
from ..ndmapping import OrderedDict, MultiDimensionalMapping
from ..spaces import HoloMap, DynamicMap
Expand Down Expand Up @@ -1007,13 +1009,16 @@ def clone(self, data=None, shared_data=True, new_type=None, *args, **overrides):

return new_dataset

# Overrides of superclass methods that are needed so that PipelineMeta
# will find them to wrap with pipeline support
def options(self, *args, **kwargs):
# Override so that PipelineMeta finds method to wrap it with pipeline
# support
return super(Dataset, self).options(*args, **kwargs)

options.__doc__ = Dimensioned.options.__doc__

def map(self, *args, **kwargs):
return super(Dataset, self).map(*args, **kwargs)
map.__doc__ = LabelledData.map.__doc__

@property
def iloc(self):
"""Returns iloc indexer with support for columnar indexing.
Expand Down

0 comments on commit 2adf704

Please sign in to comment.