-
Notifications
You must be signed in to change notification settings - Fork 2.8k
ZEPPELIN-1048: Pandas support for python interpreter #1067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I saw https://issues.apache.org/jira/browse/ZEPPELIN-1048 marked 0.7.0 as a fix version. Not a strong opinion, and i don't think it should be blocker for 0.6 release. But If we're going to change api from While |
docs/interpreter/python.md
Outdated
| zeppelin_show(plt,width='50px') | ||
| zeppelin_show(plt,height='150px') | ||
| zeppelin_show(plt, width='50px') | ||
| zeppelin_show(plt, height='150px') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also need to be changed to z.show() I guess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, of course it should. Commit addressing it was lost on rebasing.
|
I left few notes on documentation and |
|
Thank you guys for the prompt reviews! @Leemoonsoo agree on API change cost and I'm glad to have it merged in 0.6, updated JIRA If there is no more discussion, going to merge it to master and branch-0.6 |
|
cherry-picking to branch-0.6 fails with merge conflicts as master and branch-0.6 diverged. |
Display Pandas DataFrame using Zeppelin's Table Display system. Feature * [x] fix NPE in logs on empty paragraph execution * [x] matplotlib: refactor `zeppelin_show(plt)` -> `z.show(plt)` * [x] pandas: support `z.show(df)` * [x] update docs [ZEPPELIN-1048](https://issues.apache.org/jira/browse/ZEPPELIN-1048) "Zeppelin Tutorial: Python - matplotlib basic" should work, and ```python import pandas as pd rates = pd.read_csv("bank.csv", sep=";") z.show(rates) ```  * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? Yes Author: Alexander Bezzubov <bzz@apache.org> Closes #1067 from bzz/python/pandas-support and squashes the following commits: 3b1ad36 [Alexander Bezzubov] Python: update docs to reffer new API ee6668b [Alexander Bezzubov] Python: update docs, add Pandas integration 71be418 [Alexander Bezzubov] Python: limit 1000 for table display system on DataFrame 52e787d [Alexander Bezzubov] Python: pandas DataFrame using Table display system bc91b86 [Alexander Bezzubov] Python: skip interpreting empty paragraphs a7248cd [Alexander Bezzubov] Python: draft of pandas support 15646a1 [Alexander Bezzubov] Python: refactoring to z.show() (cherry picked from commit 230d890) Signed-off-by: Alexander Bezzubov <bzz@apache.org> Conflicts: docs/interpreter/python.md python/src/main/java/org/apache/zeppelin/python/PythonInterpreter.java python/src/main/resources/bootstrap.py python/src/main/resources/bootstrap_input.py
|
done in 97f25e2 |
What is this PR for?
Display Pandas DataFrame using Zeppelin's Table Display system.
What type of PR is it?
Feature
Todos
zeppelin_show(plt)->z.show(plt)z.show(df)What is the Jira issue?
ZEPPELIN-1048
How should this be tested?
"Zeppelin Tutorial: Python - matplotlib basic" should work, and
Screenshots (if appropriate)
Questions: