Convert the main dataframe to python a python list

        :param table_name: python variable name, defaults to "data"
        :param table_name: str, optional
        :return: a python list of lists with the data
        :rtype: str

        :example: ``ds.to_python_("myvar")``

def to_python_(self, table_name: str="data") -> list:
        """Convert the main dataframe to python a python list

        :param table_name: python variable name, defaults to "data"
        :param table_name: str, optional
        :return: a python list of lists with the data
        :rtype: str

        :example: ``ds.to_python_("myvar")``
        """
        try:
            renderer = pytablewriter.PythonCodeTableWriter
            data = self._build_export(renderer, table_name)
            return data
        except Exception as e:
            self.err(e, "Can not convert data to python list")