-
-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data API equivalent for HoloMaps #347
Comments
Note that the slow speed of I think until we find a way around this we should allow HoloMap to use this implementation when pandas is available. |
Just some quick thoughts on this. Fundamentally the distinction between NdMapping and Columns types is in the way the data is indexed. NdMapping types are good for providing multi-dimensional indexing for dense chunks of data, e.g. Elements. Elements on the other hand hold dense chunks of data directly, whether it is columns or dense 2d arrays. Implementing a separate API for NdMapping types that can work using either the current OrderedDict based implementation or using pandas MultiIndexes therefore would make sense. This second index based baseclass would also be useful for more powerful composite Element types, i.e. you could have a new Element baseclass where the data maps between multi dimensional keys and values that match the Columns data format, e.g. for a list of polygons for each country the data format would be This example from the pandas docs should make it clear what the data format is:
Here |
I no longer think this is required now that I've optimized |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
We've had the recent Data API PR merged for
Chart
elements and this issue suggests a similar thing could be implemented forHoloMaps
andNdMappings
.The API is not quite the same as for charts as
HoloMap
is designed to be dictionary like. However, instead of always using ordered dictionaries as.data
, you can imagine using pandas DataFrames instead. This could greatly improve the speed of certain operations (such asgroupby
) involving holomaps.The text was updated successfully, but these errors were encountered: