Skip to content

Commit 6c1d495

Browse files
committed
switch to is_copy default None in asof
1 parent 87b1ba5 commit 6c1d495

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/generic.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -7023,7 +7023,8 @@ def asof(self, where, subset=None):
70237023

70247024
# mask the missing
70257025
missing = locs == -1
7026-
data = self.take(locs, is_copy=False)
7026+
d = self.take(locs)
7027+
data = d.copy()
70277028
data.index = where
70287029
data.loc[missing] = np.nan
70297030
return data if is_list else data.iloc[-1]

0 commit comments

Comments
 (0)