I have the following function to change the value of column 'A' to np.NaN if the current value is '...'. However, for some reason, nothing is changing.
def findEmpty(row):
row['A'] = np.NaN
energy[energy['A'] == '...'].apply(lambda x:findEmpty(x))
Can someone help?