holoviews.core.data.pandas module#
- class holoviews.core.data.pandas.PandasAPI[source]#
Bases:
object
This class is used to describe the interface as having a pandas-like API.
The reason to have this class is that it is not always possible to directly inherit from the PandasInterface.
- This class should not have any logic as it should be used like:
- if issubclass(interface, PandasAPI):
…
- class holoviews.core.data.pandas.PandasInterface(*, name)[source]#
-
Methods
applies
(obj)Indicates whether the interface is designed specifically to handle the supplied object's type.
as_dframe
(dataset)Returns the data of a Dataset as a dataframe avoiding copying if it already a dataframe type.
loaded
()Indicates whether the required dependencies are loaded.
unpack_scalar
(dataset, data)Given a dataset object and data in the appropriate format for the interface, return a simple scalar.
add_dimension
aggregate
assign
concat
concat_fn
dframe
dimension_type
dtype
groupby
iloc
index_selection
index_values
indexes
init
isindex
isscalar
mask
range
redim
reindex
sample
select
sort
sort_depth
sorted_index
validate
values
Parameter Definitions
- classmethod applies(obj)[source]#
Indicates whether the interface is designed specifically to handle the supplied object’s type. By default simply checks if the object is one of the types declared on the class, however if the type is expensive to import at load time the method may be overridden.