applied-bioinformatics / An-Introduction-To-Applied-Bioinformatics

Interactive lessons in bioinformatics.
http://readIAB.org
Other
792 stars 315 forks source link

Function show_F got an error in return #315

Open danilotat opened 5 years ago

danilotat commented 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'

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.