Skip to content
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

Support return the result as a pandas.DataFrame object #8

Closed
litaotao opened this issue Sep 24, 2015 · 2 comments
Closed

Support return the result as a pandas.DataFrame object #8

litaotao opened this issue Sep 24, 2015 · 2 comments

Comments

@litaotao
Copy link
Contributor

Hi, I'm adding a feature on supporting return the sql result as a pandas.dataframe, I think this will make ipydb more powerful.

For now, ipydb is very useful for do ad-hoc both in console and ipython notebook, but people will take more actions on the result, which will almost use pandas, scipy, numpy, matplotlib in most cases, so I believe return a pandas.dataframe object will be much more useful and flexible.

what's more, it will be more clear if people just want to see the result for the display of dataframe is an excel table like style.

thanks, how do you guys think about this feature, I'm working on it now.

links:

screenshots:

table style explore data

pandas dataframe

This was referenced Sep 25, 2015
@jaysw
Copy link
Owner

jaysw commented Oct 3, 2015

Hello litaotao,

Thanks for your interest in ipydb!

Yes, I think this is a great idea.
ipydb was initially designed to only work with the ipython-consoIe (running in a terminal). I have been wanting to add support for viewing queries in the popular web-based ipython-notebook for some time now. Indeed using pandas dataframes for output provides a quick path to running ipydb queries in a notebook. I will take a look at your PR soon. Thanks again!

Jay.

@jaysw
Copy link
Owner

jaysw commented Oct 23, 2015

Fixed in #10

@jaysw jaysw closed this as completed Oct 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants