Skip to content

Commit 697385e

Browse files
committed
add copy=False
1 parent 52b0ee3 commit 697385e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3280,7 +3280,7 @@ def _try_cast(arr, take_fast_path):
32803280
# GH 16605
32813281
# If not empty convert the data to dtype
32823282
if not isna(data).all():
3283-
data = np.array(data, dtype=dtype)
3283+
data = np.array(data, dtype=dtype, copy=False)
32843284

32853285
subarr = np.array(data, dtype=object, copy=copy)
32863286

0 commit comments

Comments
 (0)