francis-du commented on code in PR #35:
URL:
https://github.com/apache/arrow-datafusion-python/pull/35#discussion_r949742906
##########
src/dataframe.rs:
##########
@@ -164,4 +164,24 @@ impl PyDataFrame {
let batches = wait_for_future(py, df.collect())?;
Ok(pretty::print_batches(&batches)?)
}
+
+ /// Calculate the union of two `DataFrame`s, preserving duplicate rows.The
+ /// two `DataFrame`s must have exactly the same schema
+ #[args(distinct = false)]
+ fn union(&self, py_df: PyDataFrame, distinct: bool) -> PyResult<Self> {
Review Comment:
User has two ways to use union distinct, if not necessary I will remove
parameter district from union.
--
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]