Aug-25-2020, 12:23 AM
(This post was last modified: Aug-25-2020, 12:23 AM by eddywinch82.)
Hi again Matador,
The Code I gave you, will change all '?' in the 'age' Column.
But I realised there is a shorter way, to get the change you wanted.
You said you wanted to change, the '?' in the 'age' Column at Index 15 to '0'
So using .loc you can change, the '?' to '0' at that specific Row and Index, and not change other '?' in the other Rows, in the 'age' Column if they were present.
Therefore using the following Line of Code, should also work :-
Best Regards
Eddie Winch
The Code I gave you, will change all '?' in the 'age' Column.
But I realised there is a shorter way, to get the change you wanted.
You said you wanted to change, the '?' in the 'age' Column at Index 15 to '0'
So using .loc you can change, the '?' to '0' at that specific Row and Index, and not change other '?' in the other Rows, in the 'age' Column if they were present.
Therefore using the following Line of Code, should also work :-
test.loc[15,'age']='0'Could you let me know, if that also works for you ?
Best Regards
Eddie Winch