Answers for "update cell in pandas"

5

change value in pandas dataframe cell

df.loc[row_or_index, column_name] = value
Posted by: Guest on April-10-2021
0

update cell in sheet by column name using pandas

# creating a simple dataframe

df = pd.DataFrame({'name': ['Olivia','Dean','Alex','Jon','Tom','Jane','Kate'],
           'age': [32,23,45,35,20,28,55],
           'sex':['female', 'male','male','male','male','female','female']})
Posted by: Guest on September-22-2021

Python Answers by Framework

Browse Popular Code Answers by Language