I am trying to replace certain data in the data frame to include the additional 'F'.
The code should look like this:
if testdata['pfType'] =='NK225M'|testdata['pfType'] == 'TOPIXM':
testdata['pfType'] = ' testdata['pfType'] & 'F';
I tried to do this:
testdata['pfType'][testdata['pfType'] == 'NK225M'] = 'NK225MF'
testdata['pfType'][testdata['pfType'] == 'TOPIXM'] = 'TOPIXMF'
But it is not changing the values, what is the best way to add the 'F' to the strings if it is NK225M or TOPIXM.