Skip to content

Commit aea421f

Browse files
committed
fix ci errors
1 parent b629b82 commit aea421f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/core/generic.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5009,7 +5009,7 @@ def sample(
50095009
)
50105010

50115011
locs = rs.choice(axis_length, size=n, replace=replace, p=weights)
5012-
return self.take(locs, axis=axis, is_copy=False)
5012+
return self.take(locs, axis=axis)
50135013

50145014
_shared_docs[
50155015
"pipe"
@@ -7006,7 +7006,7 @@ def asof(self, where, subset=None):
70067006

70077007
# mask the missing
70087008
missing = locs == -1
7009-
data = self.take(locs, is_copy=False)
7009+
data = self.take(locs)
70107010
data.index = where
70117011
data.loc[missing] = np.nan
70127012
return data if is_list else data.iloc[-1]

pandas/core/groupby/grouper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def _set_grouper(self, obj: FrameOrSeries, sort: bool = False):
194194
# use stable sort to support first, last, nth
195195
indexer = self.indexer = ax.argsort(kind="mergesort")
196196
ax = ax.take(indexer)
197-
obj = obj.take(indexer, axis=self.axis, is_copy=False)
197+
obj = obj.take(indexer, axis=self.axis)
198198

199199
self.obj = obj
200200
self.grouper = ax

0 commit comments

Comments
 (0)