Panel Widgets¶
Range slider¶
-
panel_widgets.
range_slider
(x, width=400, height=20, data_points=100, step_size=1, step_size_type=<class 'int'>, **params)¶ Widget in the navbar of the cuxfilter dashboard.
Type: Range Slider
- Parameters
- x: str
column name from gpu dataframe
- width: int, default 400
- height: int, default 20
- data_points: int, default 100
- step_size: int, default 1
- step_size_type: {int, float}, default int
- **params:
additional arguments to be passed to the function. See panel documentation for more info
Example¶
import cudf
from cuxfilter import charts, DataFrame
cux_df = DataFrame.from_dataframe(cudf.DataFrame({'key': [0, 1, 2, 3, 4], 'val':[float(i + 10) for i in range(5)]}))
range_slider = charts.panel_widgets.range_slider('key')
d = cux_df.dashboard([range_slider])
#view the individual range_slider chart part of the dashboard d
range_slider.view()
Float slider¶
-
panel_widgets.
float_slider
(x, width=400, height=40, data_points=100, step_size=None, **params)¶ Widget in the navbar of the cuxfilter dashboard.
Type: Float Slider
- Parameters
- x: str
column name from gpu dataframe
- width: int, default 400
- height: int, default 40
- data_points: int, default 100
- step_size: float, default float((max - min)/datapoints)
- **params:
additional arguments to be passed to the function. See panel documentation for more info
Example¶
import cudf
from cuxfilter import charts, DataFrame
cux_df = DataFrame.from_dataframe(cudf.DataFrame({'key': [0, 0.5, 1, 1.5, 2], 'val':[float(i + 10) for i in range(5)]}))
float_slider = charts.panel_widgets.float_slider('key', step_size=0.5)
d = cux_df.dashboard([float_slider])
#view the individual float_slider chart part of the dashboard d
float_slider.view()
Int slider¶
-
panel_widgets.
int_slider
(x, width=400, height=40, data_points=100, step_size=1, **params)¶ Widget in the navbar of the cuxfilter dashboard.
Type: Int Slider
- Parameters
- x: str
column name from gpu dataframe
- width: int, default 400
- height: int, default 40
- data_points: int, default 100
- step_size: int, default 1
- **params:
additional arguments to be passed to the function. See panel documentation for more info
Example¶
import cudf
from cuxfilter import charts, DataFrame
cux_df = DataFrame.from_dataframe(cudf.DataFrame({'key': [0, 1, 2, 3, 4], 'val':[float(i + 10) for i in range(5)]}))
int_slider = charts.panel_widgets.int_slider('val')
d = cux_df.dashboard([int_slider])
#view the individual int_slider chart part of the dashboard d
int_slider.view()
Dropdown¶
-
panel_widgets.
drop_down
(x, width=400, height=50, **params)¶ Widget in the navbar of the cuxfilter dashboard.
Type: drop_down
- Parameters
- x: str
column name from gpu dataframe
- width: int, default 400
- height: int, default 50
- data_points: int, default number of unique values
- **params:
additional arguments to be passed to the function. See panel documentation for more info
Example¶
import cudf
from cuxfilter import charts, DataFrame
cux_df = DataFrame.from_dataframe(cudf.DataFrame({'key': [0, 1, 2, 3, 4], 'val':[float(i + 10) for i in range(5)]}))
drop_down = charts.panel_widgets.drop_down('val')
d = cux_df.dashboard([drop_down])
#view the individual drop_down chart part of the dashboard d
drop_down.view()
Multiselect¶
-
panel_widgets.
multi_select
(x, width=400, height=200, **params)¶ Widget in the navbar of the cuxfilter dashboard.
Type: multi_select
- Parameters
- x: str
column name from gpu dataframe
- width: int, default 400
- height: int, default 200
- data_points: int, default number of unique values
- **params:
additional arguments to be passed to the function. See panel documentation for more info
Example¶
import cudf
from cuxfilter import charts, DataFrame
cux_df = DataFrame.from_dataframe(cudf.DataFrame({'key': [0, 1, 2, 3, 4], 'val':[float(i + 10) for i in range(5)]}))
multi_select = charts.panel_widgets.multi_select('val')
d = cux_df.dashboard([multi_select])
#view the individual multi_select chart part of the dashboard d
multi_select.view()