INNER CODE UNIT · Python
__init__
abhijithneilabraham/tableQA · tableqa/chart.py:22
def __init__(self, ctypes, query, answers, size):
"""
Constructs the necessary attributes and calls the correct function to construct output chart.
Arguments
----------
ctypes: `str` or `list` object
specify the chart types.
query: `str`
query used to fetch output from the database.
answers: `list`
Output for the query.
size: `tuple`
figure size of the chart.
"""
if len(answers) == 0:
return