Skip to content
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 #284

Merged
merged 230 commits into from
Nov 9, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
230 commits
Select commit Hold shift + click to select a range
dc81dbc
Initial dataframe integration on Charts
philippjfr Aug 31, 2015
7ed1174
Initial support for plotting Charts with dataframes
philippjfr Aug 31, 2015
281d9d7
Added support for dask dataframes on Charts
philippjfr Aug 31, 2015
68d8e12
Fixed bug in Chart.range
philippjfr Aug 31, 2015
df599b4
Merge branch 'master' into dataframe
philippjfr Aug 31, 2015
a9693b8
Merge branch 'master' into dataframe
philippjfr Sep 1, 2015
e8694dc
Fix for Points dataframe len support
philippjfr Sep 1, 2015
26b6ab5
Merge branch 'master' into dataframe
philippjfr Sep 1, 2015
6a5ed27
Added support for Blaze data sources in Charts
philippjfr Sep 1, 2015
9707d65
Merge branch 'master' into dataframe
jlstevens Sep 1, 2015
45e7b31
Fixed bug in conditional logic handling numpy arrays and dataframes
jlstevens Sep 1, 2015
8db885e
Simplified the dimension_values method on Raster
jlstevens Sep 1, 2015
d9ab340
Added the toarray utility to support dask Arrays
jlstevens Sep 1, 2015
4130d7e
Initial support for dask Array objects in Raster
jlstevens Sep 1, 2015
795b52e
Fixed accidental removal of line from collapse_data method
jlstevens Sep 2, 2015
5e1a577
Fixed isinstance check in dimension_values method of Chart
jlstevens Sep 2, 2015
7c6ec45
Added index_value option to toarray utility function
jlstevens Sep 2, 2015
0270bd0
Value indexing now works corrects using dask arrays
jlstevens Sep 2, 2015
94f7c5b
Merge branch 'master' into dataframe
philippjfr Sep 4, 2015
e72fd61
Merge branch 'master' into dataframe
philippjfr Sep 10, 2015
c9d2c4e
Added is_dataframe utiltity
philippjfr Sep 10, 2015
88d0818
Moved dataframe support from Chart to Element
philippjfr Sep 10, 2015
dfa6764
Made Tabular.pprint_cell use general API
philippjfr Sep 10, 2015
2878e8d
Added initial support for dataframes on NdElement types
philippjfr Sep 10, 2015
a2e6b37
Made DFrame inherit from NdElement
philippjfr Sep 10, 2015
3e20bf2
Fixes to NdElement dataframe handling
philippjfr Sep 11, 2015
072a2e8
Improved bokeh Chart plots data source mapping
philippjfr Sep 11, 2015
51c5477
bokeh ElementPlot and TabularPlot now cache initial frame
philippjfr Sep 11, 2015
9ff59a8
Plots in tabs now correctly sized
philippjfr Sep 11, 2015
49a59bc
Added traverse method to DimensionedPlot
philippjfr Sep 11, 2015
2263a4b
Fix for Chart handling of dask dataframes
philippjfr Sep 11, 2015
ab6f6e3
Added shared_source functionality to bokeh LayoutPlot
philippjfr Sep 11, 2015
4162625
Support for specifying unselected point styles
philippjfr Sep 14, 2015
514f632
Merge branch 'master' into dataframe
philippjfr Sep 16, 2015
cd05f53
Merge branch 'master' into dataframe
philippjfr Sep 18, 2015
8e0e47e
Merge branch 'master' into dataframe
philippjfr Sep 18, 2015
8a151da
Merge branch 'master' into dataframe
philippjfr Sep 21, 2015
bb4f717
Merge branch 'master' into dataframe
philippjfr Sep 27, 2015
a8dff85
Fix to reduce method dimension handling
philippjfr Sep 29, 2015
cd0eb78
Merge branch 'master' into dataframe
philippjfr Oct 14, 2015
f5267cf
Added Columns and ColumnarData classes starting Data API refactor
philippjfr Oct 15, 2015
f42eeb3
Handling scalar values in Dimensioned.select
philippjfr Oct 15, 2015
2012252
Chart plots now work independent of the data backend
philippjfr Oct 15, 2015
0c22fb6
Updated Chart.sample test
philippjfr Oct 15, 2015
32b22c5
Merge branch 'master' into dataframe
philippjfr Oct 15, 2015
07f14ce
Updated comparisons of Columns based Elements
philippjfr Oct 15, 2015
37a841e
Array comparisons now support non-numeric data
philippjfr Oct 15, 2015
07f9fb5
Added shape property to NdElement
philippjfr Oct 16, 2015
0450624
Readded general Element.table and Element.dframe methods
philippjfr Oct 16, 2015
5e21c38
Added general mechanism for Element casting to Columns type
philippjfr Oct 16, 2015
8257144
Minor fix to Columns.dimension_values
philippjfr Oct 16, 2015
1fb6ca3
Various fixes and improvements to Columns interface
philippjfr Oct 17, 2015
3d53c8c
Dimension comparison now includes sanitized version
philippjfr Oct 17, 2015
a670ad8
Dimensioned.select can now handle non-Dimensioned return types
philippjfr Oct 17, 2015
f0597e1
Fix for Element.dframe
philippjfr Oct 17, 2015
7e38cfb
Unified Tabular and Chart tests in testcolumns.py
philippjfr Oct 17, 2015
fb340dc
Added Columns comparison method
philippjfr Oct 17, 2015
19f2aa9
Fixes and improvements to Columns Comparisons
philippjfr Oct 17, 2015
eec737b
Fixed add_dimension with array/list of values
philippjfr Oct 17, 2015
0f2e560
Added Columns.add_dimension method
philippjfr Oct 17, 2015
0e3bad9
Added Columns.__setstate__ method for backwards compatibility
philippjfr Oct 17, 2015
20c57fc
Fix to ErrorBars constructor
philippjfr Oct 17, 2015
04fa691
Fixed NdElement.sample after changes to indexing
philippjfr Oct 17, 2015
dfa50f9
Fixed minor bug in mpl.BarPlot
philippjfr Oct 17, 2015
400e2e3
Fixes and improvements to Columns DataFrame backend
philippjfr Oct 17, 2015
3329ee0
Improved Columns dimension handling
philippjfr Oct 18, 2015
66547bc
Implemented collapse_data and add_dimension for Columns
philippjfr Oct 18, 2015
2e70509
Minor fix for Columns constructor
philippjfr Oct 18, 2015
c932a37
NdMappings now allow dropping values after slicing
philippjfr Oct 18, 2015
86315ec
Updated code to use more idiomatic expressions
philippjfr Oct 19, 2015
1e3963e
Reimplemented Element and Columns dframe methods
philippjfr Oct 19, 2015
efd7fa0
Merge branch 'master' into dataframe
philippjfr Oct 22, 2015
bdf4539
Fixed Columns dataframe slicing and added tests
philippjfr Oct 22, 2015
68aaec9
Made message handling in Comparison class consistent
philippjfr Oct 22, 2015
3aad4d1
Added Columns dataframe add_dimension unit tests
philippjfr Oct 22, 2015
3a035cb
Implemented Columns ndarray reduce and aggregate function
philippjfr Oct 23, 2015
148a15f
Fixed handling of initial values in MultiDimensionalMapping
philippjfr Oct 23, 2015
13b8708
Tuple unpacking of NdElement values
philippjfr Oct 23, 2015
eef3c41
Minor fix to NdElement.collapse_data
philippjfr Oct 23, 2015
41247f3
Fixed bug in NdElement.reindex
philippjfr Oct 23, 2015
52e72a1
Fix to NdElement.__getitem__
philippjfr Oct 23, 2015
c0609e3
Fixes to Columns.reduce implementation and improved unit tests
philippjfr Oct 24, 2015
4ae2868
Made Columns dataframe comparisons ignore indexes
philippjfr Oct 24, 2015
e1a42e8
Various fixes to Columns interface
philippjfr Oct 24, 2015
398a3ed
Removed dimension caching attributes
philippjfr Oct 25, 2015
468be0d
Improved array and dframe methods
philippjfr Oct 25, 2015
3756705
Added aggregate methods to Columns interface
philippjfr Oct 25, 2015
e997802
dimension_values method now consistently returns numpy arrays
philippjfr Oct 25, 2015
e24dcf5
Various fixes and improvements to Columns interface
philippjfr Oct 25, 2015
d4533a5
Updated Comparison unit tests
philippjfr Oct 25, 2015
85c5dbc
Minor fixes to NdMapping
philippjfr Oct 25, 2015
be47788
Fixed NdElement.reduce
philippjfr Oct 25, 2015
947e982
Eliminated references to cached dimension attributes
philippjfr Oct 25, 2015
8c53234
Fixed Columns aggregation and addded unit tests
philippjfr Oct 25, 2015
f606fef
Further optimized Columns indexing operations
philippjfr Oct 25, 2015
62e5a9f
Added Columns.shape unit tests
philippjfr Oct 25, 2015
f9a6a0c
Added general Columns.closest method
philippjfr Oct 26, 2015
8f8d3e3
Moved .array method from NdElement to Element
philippjfr Oct 26, 2015
89a062b
Added Columns unit tests
philippjfr Oct 26, 2015
577f1a0
Added range implementations to Columns interface
philippjfr Oct 26, 2015
13ebf23
Implemented column label based indexing for all Elements
philippjfr Oct 26, 2015
6880628
Simplified implementation of Raster.reduce
philippjfr Oct 26, 2015
8371a69
Optimized ColumnarDataFrame.groupby method
philippjfr Oct 26, 2015
fd7e38a
Unified TableConversion interface with DFrame conversions
philippjfr Oct 26, 2015
f1e48f1
Fixes for Columns sampling and added unit tests
philippjfr Oct 26, 2015
f2cb964
Merge branch 'master' into dataframe
philippjfr Oct 29, 2015
24ed840
Implemented sort method for Columns
philippjfr Oct 31, 2015
48d8d36
Made Columns comparison data backend agnostic
philippjfr Oct 31, 2015
dd07a39
Fix to Table conversion
philippjfr Oct 31, 2015
8e7bdbe
Refactored Columns interface as class and static methods
philippjfr Oct 31, 2015
6431366
Factored out initial Columns NdElement interface
philippjfr Oct 31, 2015
bef53ff
Updated Bars comparison test
philippjfr Oct 31, 2015
39ef416
Various improvements to Columns groupby implementations
philippjfr Nov 2, 2015
af9b935
Fix to Bokeh Curve plot
philippjfr Nov 2, 2015
ea00019
Added support for new_type in clone
philippjfr Nov 2, 2015
3d7ad01
Merge branch 'master' into dataframe
philippjfr Nov 2, 2015
a13fd29
Automatically adding index on NdElement types
philippjfr Nov 2, 2015
ac15afb
Handling datetime types in Columns and plotting
philippjfr Nov 3, 2015
3e83b5c
Refactored and optimized Columns groupby and collapse_data methods
philippjfr Nov 3, 2015
5202115
Fixes to range handling after datetime support changes
philippjfr Nov 4, 2015
cd29250
Moved .as_ndelement method to Element.mapping
philippjfr Nov 4, 2015
a35279e
Add Columns.data_type parameter to control which backend to use
philippjfr Nov 4, 2015
d8156e5
Updated Columns unit tests to set and unset data_type
philippjfr Nov 4, 2015
a28d0dd
Fixed bug in Columns NdElement constructor
philippjfr Nov 4, 2015
56e5bbf
Fix to Columns constructor
philippjfr Nov 4, 2015
2b3650a
Fixed Columns non-numeric range handling
philippjfr Nov 4, 2015
50e9ab8
Fix to Element.mapping method
philippjfr Nov 4, 2015
98c24d7
Fix to Columns.__setstate__ for backward compatibility
philippjfr Nov 4, 2015
c250701
Fixed NdElement constructor for Columns support
philippjfr Nov 4, 2015
215d5d5
Merge branch 'master' into dataframe
philippjfr Nov 4, 2015
0ec3761
Updated Chart/Chart3D plots for compatibility with Columns
philippjfr Nov 5, 2015
8f0c3f1
Added Columns.concat classmethod
philippjfr Nov 5, 2015
8fe495b
Fixed NdMapping Table conversion
philippjfr Nov 5, 2015
2bed1d8
Fixed Trisurface Table conversion
philippjfr Nov 5, 2015
0c5cd49
Fixed ColumnarArray.select support for tuples
philippjfr Nov 5, 2015
2643826
Minor fixes to Sampling_Data tutorial
philippjfr Nov 5, 2015
2d44be3
Various fixes and improvements to Raster type methods
philippjfr Nov 5, 2015
8170abb
Fixed Element.dframe method and removed Table.dframe
philippjfr Nov 5, 2015
03a1a49
Fixed Tabular.cols property
philippjfr Nov 5, 2015
b1ef22b
Readded DFrame conversion interface with deprecation warning
philippjfr Nov 5, 2015
2e2bc62
Fix to Columns.__setstate__
philippjfr Nov 5, 2015
63f8607
Readded old DFrame groupby for backwards compatibility
philippjfr Nov 5, 2015
9c6c630
Various fixes for Columns interface
philippjfr Nov 5, 2015
ed3d5ec
Improved DFrame warning formatting
philippjfr Nov 5, 2015
2a69a61
Updated HeatMap to use Columns object internally
philippjfr Nov 5, 2015
e8a6ae9
Removed row indexing from Tables
philippjfr Nov 5, 2015
7f3c859
Minor fixes to Pandas_Conversion Tutorial
philippjfr Nov 5, 2015
e85f6e5
Merge branch 'master' into dataframe
philippjfr Nov 5, 2015
f6c2255
Implemented cross-type Columns concatenation
philippjfr Nov 5, 2015
b647cdf
Fixes to parameter passing in Columns conversions
philippjfr Nov 5, 2015
8f246a7
Minor fix to Showcase notebook
philippjfr Nov 5, 2015
7e71f02
Fix for Trisurface plot
philippjfr Nov 5, 2015
7c93b48
Fix to NdElement indexing
philippjfr Nov 5, 2015
ce5f90c
Fix to ColumnarArray.collapse_data
philippjfr Nov 5, 2015
c9b62da
Python3 fix for NdElement indexing
philippjfr Nov 5, 2015
38d6569
Fix for HeatMap
philippjfr Nov 5, 2015
5491379
Ensure TableConversion sorts Curves
philippjfr Nov 5, 2015
4616d8b
Fixes to NdElement reduce/collapse
philippjfr Nov 5, 2015
e7a2f06
Made Columns dataframe version compatible with older pandas
philippjfr Nov 6, 2015
c4521e4
Fix to Columns reduce tests, now use numpy comparison
philippjfr Nov 6, 2015
1d0827d
Fix to HeatMap array orientation
philippjfr Nov 6, 2015
0d5f0ed
Fixes to Columns methods dimension input handling
philippjfr Nov 6, 2015
a93350a
Created Table conversion methods for seaborn elements
philippjfr Nov 6, 2015
0438eeb
Cleaned up seaborn interface
philippjfr Nov 6, 2015
9a13a58
Fixes to NdElement slicing, groupby and reindex
philippjfr Nov 6, 2015
8e4af87
Fixed NdElement.collapse_data
philippjfr Nov 6, 2015
e9d2262
Reverted changes to Dimensioned.clone
philippjfr Nov 6, 2015
2a5eb70
Registered NdElement and Columns to be displayed as Table
philippjfr Nov 6, 2015
639073e
Fix for Image.dimension_values to support RGB types
philippjfr Nov 6, 2015
2e3b391
Fix for ItemTable plotting in bokeh
philippjfr Nov 6, 2015
7469d79
Fix for RasterPlot.color_mapper issue
philippjfr Nov 6, 2015
c0b2714
Fix for ItemTable getitem and dimension_values methods
philippjfr Nov 6, 2015
ff311ee
Fix for HoloMap.hist method
philippjfr Nov 6, 2015
426ef26
Implemented boolean array slicing of NdMapping and Columns types
philippjfr Nov 6, 2015
dde4d9a
Fix to ColumnarDataFrame.groupby
philippjfr Nov 6, 2015
79788d3
Fixed usage of get_param_values utility
philippjfr Nov 6, 2015
2ef5270
Fix for Distribution Element after Columns changes
philippjfr Nov 6, 2015
c4f6a3e
Cleaned up Element.mapping method
philippjfr Nov 6, 2015
3d451ea
Added and cleaned up documentation in Columns interface
philippjfr Nov 6, 2015
c468eaa
Let Columns use general array method implementation
philippjfr Nov 7, 2015
a10b2fc
Fixed handling of NdElement Index dimension in Columns constructor
philippjfr Nov 7, 2015
0df5fff
Fix in mpl PointPlot for Columns based data
philippjfr Nov 7, 2015
dba7a31
Fix to axis handling in GridPlot
philippjfr Nov 7, 2015
660976e
Added option to share bokeh datasources across plots
philippjfr Nov 7, 2015
6e0f187
Added GridMatrix container and gridmatrix operation
philippjfr Nov 7, 2015
2e0723c
Improvements to handling of dataframe Columns input
philippjfr Nov 7, 2015
23c7c49
Only share dataframe or NdElement data across plots
philippjfr Nov 7, 2015
5c1b202
Implemented Dimension not equal operator
philippjfr Nov 7, 2015
19e3e02
Added missing import
philippjfr Nov 7, 2015
d1325f6
Cleaned up Columns constructor utility
philippjfr Nov 7, 2015
1875e10
Fix for Table data source sharing
philippjfr Nov 7, 2015
e121d89
Fix for Element.mapping method
philippjfr Nov 7, 2015
b2c3241
Fixes for datetime range handling
philippjfr Nov 7, 2015
ff7c1f9
Deleted trailing whitespace and minor formatting fix
jlstevens Nov 8, 2015
dbc74eb
All methods are now declared as classmethods throughout
jlstevens Nov 8, 2015
9b440dc
Added docstring to the _validate_data method
jlstevens Nov 8, 2015
8af5ac5
Updated class names to newly agreed convention
jlstevens Nov 8, 2015
1faf9a4
Refactored Columns constructor and interfaces
philippjfr Nov 8, 2015
1add437
Minor cleanup of DFColumns.reshape
philippjfr Nov 8, 2015
b163f39
Minor formatting changes
jlstevens Nov 8, 2015
46d3eeb
Updated class and parameter docstrings of Columns
jlstevens Nov 8, 2015
523bd77
Minor change to Columns constructor
jlstevens Nov 8, 2015
75226d2
Simplified DataColumns.initialize and made signature more explicit
jlstevens Nov 8, 2015
8e5342d
Removed Columns.collapse_data using the interface directly instead
philippjfr Nov 8, 2015
a952a16
Avoiding duplication when matching interface prioritized
jlstevens Nov 8, 2015
8f9276c
Replaced np.isscalar with simpler instance check in Dimensioned.select
philippjfr Nov 8, 2015
6b7c986
Refactored Columns._validate data into interface
philippjfr Nov 8, 2015
74133ec
Removed as_table argument and made Table data type conversion easy
philippjfr Nov 8, 2015
db437d3
Minor fixes to Columns constructor when passing Elements
philippjfr Nov 9, 2015
6f4358a
Fix for ErrorBars constructor
philippjfr Nov 9, 2015
48b84c0
Minor fix to gridmatrix operation
philippjfr Nov 9, 2015
5e46ada
Minor fix for DFrame Element
philippjfr Nov 9, 2015
6859f80
Minor fix to Element.mapping
philippjfr Nov 9, 2015
8b67056
Fix to HoloMap.hist method
philippjfr Nov 9, 2015
d515cf0
Reimplemented extents setting on Chart types
philippjfr Nov 9, 2015
7880598
Minor fix for Chart slicing extent setting
philippjfr Nov 9, 2015
d65da67
Fixed issue with scalar indexing in Charts
philippjfr Nov 9, 2015
b989f20
Fixed missing interface for compatibility with old pickles
philippjfr Nov 9, 2015
9bfc2dd
Minor fixes to Columns constructor
philippjfr Nov 9, 2015
601f026
Fixed Python3 issues in Columns interface
philippjfr Nov 9, 2015
3265a8e
Fixed HeatMap dimension_values bug
philippjfr Nov 9, 2015
6a526be
Fixed Python3 issue in Chart.__getitem__
philippjfr Nov 9, 2015
2ebf686
Made Columns Python3 iterator handling more robust
philippjfr Nov 9, 2015
b9ddd32
Minor Python3 fix for Raster.closest
philippjfr Nov 9, 2015
ca76526
Minor fix for Sampling_Data notebook
philippjfr Nov 9, 2015
0bb304f
Updated reference_data submodule reference
philippjfr Nov 9, 2015
30efd80
Minor fix to HeatMap.dense_keys
philippjfr Nov 9, 2015
245b6e2
Minor formatting fixes
jlstevens Nov 9, 2015
21a210e
Updated reference_data submodule reference
philippjfr Nov 9, 2015
3fc7036
Updated reference_data submodule reference
philippjfr Nov 9, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 4 additions & 22 deletions doc/Tutorials/Pandas_Conversion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -140,24 +140,6 @@
"HTML(df.reset_index().to_html())"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"For now though, the a, b, and c columns is all we'll need. To confirm the dataframe was converted correctly we can call the `.info` method on Table:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"example_table.info"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -267,7 +249,7 @@
},
"outputs": [],
"source": [
"macro_df = pd.read_csv('http://ioam.github.com/holoviews/Tutorials/macro.csv', sep='\\t')"
"macro_df = pd.read_csv('http://ioam.github.com/holoviews/Tutorials/macro.csv', '\\t')"
]
},
{
Expand Down Expand Up @@ -404,7 +386,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Now that we've extracted the gdp_curves we can apply some operations to them. The collapse method applies some function across the data along the supplied dimensions. This lets us quickly compute the mean GDP Growth by year for example, but it also allows us to map a function with parameters to the data and visualize the resulting samples. A simple example is computing a curve for each percentile and embedding it in an NdOverlay.\n",
"Now that we've extracted the gdp_curves we can apply some operations to them. The collapse method applies some function across the data along the supplied dimensions. This let's us quickly compute a the mean GDP Growth by year for example, but it also allows us to map a function with parameters to the data and visualize the resulting samples. A simple example is computing a curve for each percentile and embedding it in an NdOverlay.\n",
"\n",
"Additionally we can apply a Palette to visualize the range of percentiles."
]
Expand Down Expand Up @@ -462,9 +444,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Using the .select method we can pull out the data for just a few countries and specific years. We can also make more advanced use of the Palettes.\n",
"Using the .select method we can pull out the data for just a few countries and specific years. We can also make more advanced use the Palettes.\n",
"\n",
"Palettes can be customized by selecting only a subrange of the underlying cmap to draw the colors from. The Palette draws samples from the colormap using the supplied sample_fn, which by default just draws linear samples but may be overriden with any function that draws samples in the supplied ranges. By slicing the Set1 colormap we draw colors only from the upper half of the palette and then reverse it."
"Palettes can customized by selecting only a subrange of the underlying cmap to draw the colors from. The Palette draws samples from the colormap using the supplied sample_fn, which by default just draws linear samples but may be overriden with any function that draws samples in the supplied ranges. By slicing the Set1 colormap we draw colors only from the upper half of the palette and then reverse it."
]
},
{
Expand Down
11 changes: 5 additions & 6 deletions doc/Tutorials/Sampling_Data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
"outputs": [],
"source": [
"raster = hv.Raster(np.random.rand(3, 3))\n",
"raster + hv.Points(raster.table().keys())[-1:3, -1:3] + raster.table()"
"raster + hv.Points(raster)[-1:3, -1:3] + raster.table()"
]
},
{
Expand Down Expand Up @@ -316,7 +316,7 @@
"source": [
"extents = (0, 0, 3, 3)\n",
"img = hv.Image(np.random.rand(3, 3), bounds=extents)\n",
"img + hv.Points(img.table().keys(), extents=extents) + img.table()"
"img + hv.Points(img, extents=extents) + img.table()"
]
},
{
Expand Down Expand Up @@ -462,7 +462,7 @@
"extents = (0, 0, 10, 10)\n",
"img = hv.Image(np.random.rand(10, 10), bounds=extents)\n",
"img_coords = hv.Points(img.table(), extents=extents)\n",
"img + img * img_coords * hv.Points([img.closest((5,5))])(style=dict(color='r')) + img.sample([(5, 5)])"
"img + img * img_coords * hv.Points([img.closest([(5,5)])])(style=dict(color='r')) + img.sample([(5, 5)])"
]
},
{
Expand All @@ -481,7 +481,7 @@
"outputs": [],
"source": [
"sampled = img.sample(y=5)\n",
"img + img * img_coords * hv.Points(zip(sampled.table().keys(), [img.closest((5,5))[1]]*10)) + sampled"
"img + img * img_coords * hv.Points(zip(sampled['x'], [img.closest(y=5)]*10)) + sampled"
]
},
{
Expand Down Expand Up @@ -610,8 +610,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"scrolled": true
"collapsed": false
},
"outputs": [],
"source": [
Expand Down
2 changes: 1 addition & 1 deletion doc/Tutorials/Showcase.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
"source": [
"sample_pos = (0,0.25)\n",
"annotated = circular_wave * hv.Points([sample_pos])\n",
"sample = circular_wave.sample(samples=[sample_pos]).reindex().to.curve('Phase', 'Amplitude')\n",
"sample = circular_wave.sample(samples=[sample_pos]).to.curve('Phase', 'Amplitude', ['Frequency'])\n",
"annotated + sample"
]
},
Expand Down
2 changes: 1 addition & 1 deletion doc/reference_data
Submodule reference_data updated 76 files
+ holoviews_Elements_py2/data_029.pkl
+ holoviews_Elements_py2/data_030.pkl
+1 −1 holoviews_Elements_py2/display_022.html
+1 −1 holoviews_Elements_py2/display_030.html
+1 −1 holoviews_Elements_py2/display_031.html
+ holoviews_Elements_py3/data_029.pkl
+ holoviews_Elements_py3/data_030.pkl
+1 −1 holoviews_Elements_py3/display_022.html
+1 −1 holoviews_Elements_py3/display_030.html
+1 −1 holoviews_Elements_py3/display_031.html
+1 −1 holoviews_Exploring_Data_py2/display_002.html
+1 −1 holoviews_Exploring_Data_py2/display_010.html
+1 −1 holoviews_Exploring_Data_py3/display_002.html
+1 −1 holoviews_Exploring_Data_py3/display_010.html
+ holoviews_Pandas_Conversion_py2/data_008.pkl
+ holoviews_Pandas_Conversion_py2/data_009.pkl
+1 −1 holoviews_Pandas_Conversion_py2/display_001.html
+1 −1 holoviews_Pandas_Conversion_py2/display_002.html
+1 −1 holoviews_Pandas_Conversion_py2/display_003.html
+1 −1 holoviews_Pandas_Conversion_py2/display_004.html
+1 −1 holoviews_Pandas_Conversion_py2/display_005.html
+1 −1 holoviews_Pandas_Conversion_py2/display_006.html
+1 −1 holoviews_Pandas_Conversion_py2/display_007.html
+1 −1 holoviews_Pandas_Conversion_py2/display_008.html
+1 −1 holoviews_Pandas_Conversion_py2/display_009.html
+1 −1 holoviews_Pandas_Conversion_py2/display_010.html
+1 −1 holoviews_Pandas_Conversion_py2/display_011.html
+1 −1 holoviews_Pandas_Conversion_py2/display_012.html
+1 −1 holoviews_Pandas_Conversion_py2/display_013.html
+0 −1 holoviews_Pandas_Conversion_py2/display_014.html
+ holoviews_Pandas_Conversion_py3/data_008.pkl
+ holoviews_Pandas_Conversion_py3/data_009.pkl
+1 −1 holoviews_Pandas_Conversion_py3/display_001.html
+1 −1 holoviews_Pandas_Conversion_py3/display_002.html
+1 −1 holoviews_Pandas_Conversion_py3/display_003.html
+1 −1 holoviews_Pandas_Conversion_py3/display_004.html
+1 −1 holoviews_Pandas_Conversion_py3/display_005.html
+1 −1 holoviews_Pandas_Conversion_py3/display_006.html
+1 −1 holoviews_Pandas_Conversion_py3/display_007.html
+1 −1 holoviews_Pandas_Conversion_py3/display_008.html
+1 −1 holoviews_Pandas_Conversion_py3/display_009.html
+1 −1 holoviews_Pandas_Conversion_py3/display_010.html
+1 −1 holoviews_Pandas_Conversion_py3/display_011.html
+1 −1 holoviews_Pandas_Conversion_py3/display_012.html
+1 −1 holoviews_Pandas_Conversion_py3/display_013.html
+0 −1 holoviews_Pandas_Conversion_py3/display_014.html
+ holoviews_Sampling_Data_py2/data_007.pkl
+ holoviews_Sampling_Data_py2/data_008.pkl
+ holoviews_Sampling_Data_py2/data_011.pkl
+ holoviews_Sampling_Data_py2/data_013.pkl
+ holoviews_Sampling_Data_py2/data_014.pkl
+ holoviews_Sampling_Data_py2/data_015.pkl
+ holoviews_Sampling_Data_py2/data_016.pkl
+ holoviews_Sampling_Data_py2/data_017.pkl
+ holoviews_Sampling_Data_py2/data_018.pkl
+1 −1 holoviews_Sampling_Data_py2/display_006.html
+1 −1 holoviews_Sampling_Data_py2/display_009.html
+1 −1 holoviews_Sampling_Data_py2/display_011.html
+1 −1 holoviews_Sampling_Data_py2/display_014.html
+1 −1 holoviews_Sampling_Data_py2/display_015.html
+1 −1 holoviews_Sampling_Data_py2/display_016.html
+ holoviews_Sampling_Data_py3/data_007.pkl
+ holoviews_Sampling_Data_py3/data_008.pkl
+ holoviews_Sampling_Data_py3/data_011.pkl
+ holoviews_Sampling_Data_py3/data_013.pkl
+ holoviews_Sampling_Data_py3/data_014.pkl
+ holoviews_Sampling_Data_py3/data_015.pkl
+ holoviews_Sampling_Data_py3/data_016.pkl
+ holoviews_Sampling_Data_py3/data_017.pkl
+ holoviews_Sampling_Data_py3/data_018.pkl
+1 −1 holoviews_Sampling_Data_py3/display_006.html
+1 −1 holoviews_Sampling_Data_py3/display_009.html
+1 −1 holoviews_Sampling_Data_py3/display_011.html
+1 −1 holoviews_Sampling_Data_py3/display_014.html
+1 −1 holoviews_Sampling_Data_py3/display_015.html
+1 −1 holoviews_Sampling_Data_py3/display_016.html
1 change: 1 addition & 0 deletions holoviews/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .boundingregion import * # pyflakes:ignore (API import)
from .data import * # pyflakes:ignore (API import)
from .dimension import * # pyflakes:ignore (API import)
from .element import * # pyflakes:ignore (API import)
from .layout import * # pyflakes:ignore (API import)
Expand Down
Loading