Problem with error NumPy's new string extension dtype
I have this code, before it can run with no problem, but now it raises error:, any solution ? i try tochage the data type into object but still not work. Thanks
for i in range(1,len(df3)):
df['code1'].values[i-1] = np.where((df['TICKER'].values[i-1] == df['TICKER'].values[i]) & (df['BD'].values[i] == df['SD'].values[i-1]),'SAME',1000)