I have a cell for which i want to its value. I know the cell's column name and its row number (but not its row index)
A B
h 1 2
n 3 4
Say, i have dataframe above, i have to change the cell on the first row (i dont know its index 'h') with column name 'B'.
I try df['B'].iloc[0]=10, and it works, but it always gives a warning.
' SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame'
so what is the correct way to change a cell's value for my case?