Relative Content

Tag Archive for pandasdataframereplace

Dataframe replace columns and save to new df

I loaded in a .dat file to a pandas dataframe. Two of the columns are mean and error. I used the values in these two columns to create a randomized value for mean. I want to replace the mean column in the dataframe with the new values for mean. However I want to continuously do this and create new dataframes as I go because every dataframe needs to be saved back to a file and used in a simulation.

Dataframe replace columns and save to new df

I loaded in a .dat file to a pandas dataframe. Two of the columns are mean and error. I used the values in these two columns to create a randomized value for mean. I want to replace the mean column in the dataframe with the new values for mean. However I want to continuously do this and create new dataframes as I go because every dataframe needs to be saved back to a file and used in a simulation.