Github user bustios commented on the issue:
https://github.com/apache/zeppelin/pull/1343
@agoodm your solution looks good, but the `import io` is going to generate
an error in the `show_dataframe` method for Python 2. Running the tests can
help you to catch this error. It would be better to use:
```python
from io import BytesIO
```
before (and not to delete):
```python
try:
import StringIO as io
except ImportError:
import io as io
```
another option could be:
```python
from io import BytesIO
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
```
and replage `io.StringIO` by `StringIO`.
Personally, I prefer the second option because it has the advantage of
avoiding the `io` package to be hidden by `import StringIO as io` for future
use.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---