-
Notifications
You must be signed in to change notification settings - Fork 604
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
feat(export): implement the Column.to_list()
API
#10498
Conversation
|
ibis/expr/types/generic.py
Outdated
>>> t.bill_length_mm.to_list() | ||
[39.1, 39.5, 40.3, None, 36.7] | ||
""" | ||
return self.to_pyarrow().to_pylist() |
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.
The kwargs need to be passed through to to_pyarrow
here
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.
Ah, true, and docstring should say same as kwargs for to_pyarrow
, too.
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.
Wonder why the test is passing...
I'll take a look.
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.
Wonder why the test is passing...
The test logic was wrong; fixed in fe03b1d.
e3d0d24
to
fe03b1d
Compare
Parameters | ||
---------- | ||
kwargs | ||
Same as keyword arguments to [`to_pyarrow`](#ibis.expr.types.core.Expr.to_pyarrow) |
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 is technically a broken link, since the docs aren't published... but so is
[`execute`]((#ibis.expr.types.core.Expr.execute)
used elsewhere.
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.
Not sure if want to start publishing the docs so the links work? A linkchecker might be nice at some point. :D
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.
We have a link checker -- maybe it doesn't work on quartodoc-generated links? But yeah, lychee
is the link checker and there's a checklinks
rule in the justfile, so I dunno.
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.
Ah, interesting, we do publish Column
docs, but not inherited methods, so we're missing out on things like to_pyarrow
.
Well, that's a separate concern
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.
Description of changes
Implement
Column.to_list()
convenience method to avoid having to doColumn.to_pyarrow().to_pylist()
manually.Issues closed