Relative Content

Tag Archive for pythonpandasmissing-data

How to fill missing values based on relationships between existing data

Question How to fill missing values of a pandas dataframe based on the relationship between an existing preceeding row (predictions for a commodity), and an associated existing value in another column (actual values for a commodity). Details I have a pandas dataframe with 10 columns and 40 rows. The columns are Date, Actual, time_from_actual_1, time_from_actual_2, […]