Skip to content

Commit

Permalink
Fix Pandas output issue in Colab (#75)
Browse files Browse the repository at this point in the history
Pandas output itself is shown correctly in Colab, but right before the
output there's the following issue:

```
/usr/local/lib/python3.7/dist-packages/pandas/io/formats/format.py in to_html(self, buf, encoding, classes, notebook, border)
    986         notebook : {True, False}, optional, default False
    987             Whether the generated HTML is for IPython Notebook.
--> 988         border : int
    989             A ``border=border`` attribute is included in the opening
    990             ``<table>`` tag. Default ``pd.options.display.html.border``.

AttributeError: 'NotebookFormatter' object has no attribute 'get_result'
```

Using the latest `pandas-profiling` lib seems to fix the issue.
  • Loading branch information
nastra authored Jun 7, 2021
1 parent 5ac9a80 commit 037edef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pydemolib/requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ assertpy==1.1
bump2version==1.0.1
build==0.4.0
flake8==3.9.2
# this fixes pandas output in Google Colab
pandas-profiling>=3.0.0
pip==21.1.2
pytest==6.2.4
pytest-forked==1.3.0
Expand Down

0 comments on commit 037edef

Please sign in to comment.