Open danilotat opened 5 years ago
https://github.com/applied-bioinformatics/An-Introduction-To-Applied-Bioinformatics/blob/282f1ae290775ceab0c6b257f0d2dc7485fa13e0/iab/algorithms/__init__.py#L80
While using this code, you'll get an Attribute error: AttributeError: 'function' object has no attribute 'tabulate'
AttributeError: 'function' object has no attribute 'tabulate'
That's because the function tabulate got a syntax like: tabulate(object, attributes)
tabulate(object, attributes)
So the right way is to replace with: return tabulate(rows, headers=col_headers, tablefmt='html') This will lay to no error.
return tabulate(rows, headers=col_headers, tablefmt='html')
https://github.com/applied-bioinformatics/An-Introduction-To-Applied-Bioinformatics/blob/282f1ae290775ceab0c6b257f0d2dc7485fa13e0/iab/algorithms/__init__.py#L80
While using this code, you'll get an Attribute error:
AttributeError: 'function' object has no attribute 'tabulate'
That's because the function tabulate got a syntax like:
tabulate(object, attributes)
So the right way is to replace with:
return tabulate(rows, headers=col_headers, tablefmt='html')
This will lay to no error.