Skip to content

Commit

Permalink
DOC: Update merge copy parameter codes and doc
Browse files Browse the repository at this point in the history
Signed-off-by: Liang Yan <[email protected]>
  • Loading branch information
liang3zy22 committed Jul 19, 2023
1 parent e0964c2 commit 31af840
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,8 @@
`right` should be left as-is, with no suffix. At least one of the
values must not be None.
copy : bool, default True
If False, avoid copy if possible.
If False, avoid copy if possible. If CoW is used, then the copy will be set
to False. If merge finally work on axis 0, then copy operation may be needed.
indicator : bool or str, default False
If True, adds a column to the output DataFrame called "_merge" with
information on the source of each row. The column can be given a different
Expand Down
4 changes: 2 additions & 2 deletions pandas/core/internals/concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def concatenate_managers(

fastpath = blk.values.dtype == values.dtype
else:
values = _concatenate_join_units(join_units, copy=copy)
values = _concatenate_join_units(join_units)
fastpath = False

if fastpath:
Expand Down Expand Up @@ -454,7 +454,7 @@ def get_reindexed_values(self, empty_dtype: DtypeObj, upcasted_na) -> ArrayLike:
return self.block.values


def _concatenate_join_units(join_units: list[JoinUnit], copy: bool) -> ArrayLike:
def _concatenate_join_units(join_units: list[JoinUnit]) -> ArrayLike:
"""
Concatenate values from several join units along axis=1.
"""
Expand Down
1 change: 0 additions & 1 deletion pandas/core/reshape/concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,6 @@ def get_result(self):
# stack blocks
if self.bm_axis == 0:
name = com.consensus_name_attr(self.objs)
cons = sample._constructor

arrs = [ser._values for ser in self.objs]

Expand Down

0 comments on commit 31af840

Please sign in to comment.