How to set value for particular cell in Python Pandas DataFrame using index? To set value for particular cell in Python Pandas DataFrame using index, we can use the set_value method. For instance, we write df.set_value('C', 'x', 10) to set the value of the 'C‘ column in 'x' row of the df data frame to 10.