1

I think you are trying to change all the values in certain column to abspath you can simply use apply function def full_path(x): return "my path" + "specific values" + ".jpg" df[list(df.keys())[0]]=df[list(df.keys())[0]].apply(full_path) If not I have one more solution you can store the values which will be the replacements ...


Only top voted, non community-wiki answers of a minimum length are eligible