def to_df(chart, **kwargs):
    if chart.source not in current_app.config["source"]:
        raise InvalidSourceError(
            "Source not found: {}".format(chart.source))

    options = dict(chart.payload)
    options.update(kwargs)
    df = current_app.config["source"][chart.source].get(**options)
    df._metadata = {
        "name": chart.name,
        "description": chart.description,
    }
    return df
Convert chart to dataframe.
dataset/ETHPy150Open eleme/polaris/polaris/convert.py/to_df