Answers for "dataframe change column values r"

R
19

replace column values pandas

df['column'] = df['column'].str.replace(',','-')
df
Posted by: Guest on February-25-2020
0

dataframe change column value

df["column1"].replace({"a": "x", "b": "y"}, inplace=True)
Posted by: Guest on July-05-2021
1

r change a single value in a dataframe

# Basic syntax:
your_dataframe[row_number, column_number] = new_value
Posted by: Guest on October-11-2020

Code answers related to "dataframe change column values r"

Browse Popular Code Answers by Language