timsaucer commented on code in PR #825:
URL: https://github.com/apache/datafusion-python/pull/825#discussion_r1722541874
##########
python/datafusion/dataframe.py:
##########
@@ -524,3 +524,19 @@ def unnest_columns(self, *columns: str, preserve_nulls:
bool = True) -> DataFram
"""
columns = [c for c in columns]
return DataFrame(self.df.unnest_columns(columns,
preserve_nulls=preserve_nulls))
+
+ def __arrow_c_stream__(self, requested_schema: pa.Schema) -> Any:
+ """Export an Arrow PyCapsule Stream.
+
+ This will execute and collect the DataFrame. We will attempt to
respect the
+ requested schema, but only trivial transformations will be applied
such as only
+ returning the fields listed in the requested schema if their data
types match
+ those in the DataFrame.
Review Comment:
No, still on my todo list above. I'll move the PR to ready to review as soon
as all those 3 things are done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]