INNER CODE UNIT · Python

answers

abhijithneilabraham/tableQA · tableqa/chart.py:54

        answers = list(map(list, list(zip(*answers))))
        assert(len(columns) == len(answers))

        if isinstance(ctypes, list):
            for ctype in ctypes:
                if ctype.lower() not in self.__REGISTERED_CHARTS:
                    import warnings
                    warnings.warn('The only supported chart types are - {}. Please select one of the two to visualize your results.'.format(list(self.__REGISTERED_CHARTS.keys())))
                else:
                    getattr(self, ctype.lower())(columns, answers)
        elif ctypes.lower() == 'all':
            for ctype in self.__REGISTERED_CHARTS:
                getattr(self, ctype)(columns, answers)
        else:
            if ctypes.lower() not in self.__REGISTERED_CHARTS:
                import warnings
                warnings.warn('The only supported chart types are - {}. Please select one of the two to visualize your results.'.format(list(self.__REGISTERED_CHARTS.keys())))
            else:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…