Qsbase¶
flowtask.components.QSBase
¶
QuerySource. QSBase is a new kind of component supporting the new sources for QuerySource and making transformations of data, returning a transformed Pandas DataFrame.
QSBase
¶
Bases: FlowComponent, PandasDataframe
QSBase
Overview
This component is a helper to build components extending from QuerySource,
providing functionality to query data sources and
convert the results into pandas DataFrames.
.. table:: Properties :widths: auto
+------------------------+----------+-----------+------------------------------------------------------------------+ | Name | Required | Summary | +------------------------+----------+-----------+------------------------------------------------------------------+ | type | Yes | The type of query or operation to perform. | +------------------------+----------+-----------+------------------------------------------------------------------+ | pattern | No | The pattern to use for setting attributes. | +------------------------+----------+-----------+------------------------------------------------------------------+ | conditions | No | Conditions to apply to the query. | +------------------------+----------+-----------+------------------------------------------------------------------+ | map | No | Dictionary for mapping or transforming the resulting DataFrame. | +------------------------+----------+-----------+------------------------------------------------------------------+ | infer_types | No | If True, converts DataFrame columns to appropriate dtypes. Default is False. | +------------------------+----------+-----------+------------------------------------------------------------------+ | to_string | No | If True, converts DataFrame columns to string dtype. Default is True. | +------------------------+----------+-----------+------------------------------------------------------------------+
Returns
This component returns a pandas DataFrame containing the queried data. If multiple data sets are retrieved, it returns a dictionary of DataFrames.