diff --git a/python/python/ert_gui/plottery/plot_data_gatherer.py b/python/python/ert_gui/plottery/plot_data_gatherer.py index 2d635087581..a84391ddf50 100644 --- a/python/python/ert_gui/plottery/plot_data_gatherer.py +++ b/python/python/ert_gui/plottery/plot_data_gatherer.py @@ -72,11 +72,12 @@ def gatherSummaryData(ert, case, key): if not data.empty: data = data.reset_index() - if True in data.duplicated(): - print("** Warning: The simulation data contains duplicate " - "timestamps. A possible explanation is that your " - "simulation timestep is less than a second.") - data = data.drop_duplicates() + if any(data.dupliated()): + print("** Warning: The simulation data contains duplicate " + "timestamps. A possible explanation is that your " + "simulation timestep is less than a second.") + data = data.drop_duplicates() + data = data.pivot(index="Date", columns="Realization", values=key)