Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
Pandas drops duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Fanebust Dregi committed Jun 19, 2017
1 parent dddf2fc commit 6931694
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/python/ert_gui/plottery/plot_data_gatherer.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def gatherSummaryData(ert, case, key):
data = SummaryCollector.loadAllSummaryData(ert, case, [key])
if not data.empty:
data = data.reset_index()
data = data.drop_duplicates()
data = data.pivot(index="Date", columns="Realization", values=key)

return data #.dropna()
Expand Down

0 comments on commit 6931694

Please sign in to comment.