You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The API documentation says execute returns a cursor, but doesn't say what a cursor is or what its methods are or give a hyperlink to outside documentation.
Similarly, for sql_execute, nothing at all is said about the return value. (I gather the result is a pandas.DataFrame, but the documentation should say so.)
This makes it hard (impossible) to figure out how to access a table from python, which would seem to be a primary use case for the API.
Some examples of doing SELECT through the API would be nice.
The text was updated successfully, but these errors were encountered:
Date: Tue, 29 Aug 2017 18:13:42 -0700
From: Jonathan Rees probably ***@***.***>
The API documentation says execute returns a cursor, but doesn't say
what a cursor is or what its methods are or give a hyperlink to
outside documentation.
It is an instance of BayesDBCursor, which has a docstring at least,
and so should turn up in the documentation. Maybe there is a missing
link somewhere.
Similarly, for sql_execute, nothing at all is said about the return
value. (I gather the result is a pandas.DataFrame, but the
documentation should say so.)
Thanks. I think I've figured out what I need to know for my own purposes. The issue is specifically about the documentation, by which I mean the 'Bayeslite API reference' currently on the web at http://probcomp.csail.mit.edu/bayesdb/doc/api.html, not a request for information for me in particular.
I don't think I'll have time to fix this, but if there's any interest in having people outside the project be able to use the API using the documentation as their guide (as opposed to reading source code), without the advantage I have of being able to ask questions of human beings, then I recommend that the documentation be improved, at least in this particular way.
The API documentation says execute returns a cursor, but doesn't say what a cursor is or what its methods are or give a hyperlink to outside documentation.
Similarly, for sql_execute, nothing at all is said about the return value. (I gather the result is a pandas.DataFrame, but the documentation should say so.)
This makes it hard (impossible) to figure out how to access a table from python, which would seem to be a primary use case for the API.
Some examples of doing SELECT through the API would be nice.
The text was updated successfully, but these errors were encountered: