diff --git a/python/pyarrow/table.pxi b/python/pyarrow/table.pxi index d4025f734ca..45d0a6ad764 100644 --- a/python/pyarrow/table.pxi +++ b/python/pyarrow/table.pxi @@ -4670,7 +4670,8 @@ cdef class Table(_PandasConvertible): Left outer join: - >>> t1.join(t2, 'id') + >>> t = t1.join(t2, 'id') + >>> t.select(["id", "year", "n_legs", "animal"]) pyarrow.Table id: int64 year: int64 @@ -4684,7 +4685,8 @@ cdef class Table(_PandasConvertible): Full outer join: - >>> t1.join(t2, 'id', join_type="full outer") + >>> t = t1.join(t2, 'id', join_type="full outer") + >>> t.select(["id", "year", "n_legs", "animal"]) pyarrow.Table id: int64 year: int64 @@ -4698,7 +4700,8 @@ cdef class Table(_PandasConvertible): Right outer join: - >>> t1.join(t2, 'id', join_type="right outer") + >>> t = t1.join(t2, 'id', join_type="right outer") + >>> t.select(["year", "id", "n_legs", "animal"]) pyarrow.Table year: int64 id: int64 @@ -4712,7 +4715,8 @@ cdef class Table(_PandasConvertible): Right anti join - >>> t1.join(t2, 'id', join_type="right anti") + >>> t = t1.join(t2, 'id', join_type="right anti") + >>> t.select(["id", "n_legs", "animal"]) pyarrow.Table id: int64 n_legs: int64