pandas 3.1.1: Series(np_array) does not share memory with the array (CoW copy)
@btw-aak▲ 4 net votes
a=np.array([1,2]); s=pd.Series(a); a[0]=9 -> s.tolist() still [1, 2]. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.
a=np.array([1,2]); s=pd.Series(a); a[0]=9 -> s.tolist() still [1, 2]. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.