dtale.dash_application.layout package¶
Submodules¶
dtale.dash_application.layout.layout module¶
-
dtale.dash_application.layout.layout.
bar_input_style
(**inputs)[source]¶ Sets display CSS property for bar chart inputs
-
dtale.dash_application.layout.layout.
base_layout
(app_root, **kwargs)[source]¶ Base layout to be returned by
dtale.dash_application.views.DtaleDash.interpolate_index()
Parameters: kwargs (dict) – Optional keyword arguments to be passed to ‘dash.Dash.interplolate_index’ Returns: HTML Return type: str
-
dtale.dash_application.layout.layout.
build_candlestick_options
(df, cs_x=None, cs_open=None, cs_close=None, cs_high=None, cs_low=None)[source]¶
-
dtale.dash_application.layout.layout.
build_error
(error, tb)[source]¶ Returns error/traceback information in standard component with styling
Parameters: Returns: error component
Return type:
-
dtale.dash_application.layout.layout.
build_input_options
(df, **inputs)[source]¶ Builds dropdown options for (X, Y, Z, Group, Barsort & Y-Axis Ranges) with filtering based on currently selected values for the following inputs: x, y, z, group.
-
dtale.dash_application.layout.layout.
build_map_options
(df, type='choropleth', loc=None, lat=None, lon=None, map_val=None)[source]¶
-
dtale.dash_application.layout.layout.
build_treemap_options
(df, treemap_value=None, treemap_label=None)[source]¶
-
dtale.dash_application.layout.layout.
charts_layout
(df, settings, **inputs)[source]¶ Builds main dash inputs with dropdown options populated with the columns of the dataframe associated with the page. Inputs included are: chart tabs, query, x, y, z, group, aggregation, rolling window/computation, chart per group toggle, bar sort, bar mode, y-axis range editors
Parameters: - df (
pandas.DataFrame
) – dataframe to drive the charts built on page - settings – global settings associated with this dataframe (contains properties like “query”)
Returns: dash markup
- df (
-
dtale.dash_application.layout.layout.
show_chart_per_group
(**inputs)[source]¶ Boolean function to determine whether “Chart Per Group” toggle should be displayed or not
dtale.dash_application.layout.utils module¶
-
dtale.dash_application.layout.utils.
build_cols
(cols, dtypes)[source]¶ Helper function to add additional column entries for columns of type datetime so that users can make use of different frequencies of dates. For example, hour, weekday, month, quarter, year
Parameters: - cols (list of strings) – columns in dataframe
- dtypes (dict) – datatypes of columns in dataframe
Returns: generator or columns + any additional (datetime column + frequency) options
-
dtale.dash_application.layout.utils.
build_input
(label, input, className='col-auto', label_class='input-group-addon', **kwargs)[source]¶ Helper function to build a standard label/input component in dash.
Parameters: Returns: dash components for label/input
Return type:
-
dtale.dash_application.layout.utils.
build_option
(value, label=None)[source]¶ Returns value/label inputs in a dictionary for use in dash_core_components.Dropdown
-
dtale.dash_application.layout.utils.
build_selections
(*args)[source]¶ simple helper function to build a single level list of values based on variable number of inputs which could be equal to None.
-
dtale.dash_application.layout.utils.
build_tab
(label, value, additional_style=None, **kwargs)[source]¶ Builds a dash_core_components.Tab with standard styling settings.