Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Function show_F got an error in return #315

Open
danilotat opened this issue Aug 1, 2019 · 0 comments
Open

Function show_F got an error in return #315

danilotat opened this issue Aug 1, 2019 · 0 comments

Comments

@danilotat
Copy link

return tabulate.tabulate(rows, headers=col_headers, tablefmt='html')

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant