Skip to content

Commit

Permalink
Pandas 2 compatibility for RFT plotter (equinor#1305)
Browse files Browse the repository at this point in the history
* Pandas 2 compability for RFT plotter

* black
  • Loading branch information
HansKallekleiv authored Dec 2, 2024
1 parent bc3f403 commit aa84f0a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ def update_crossplot(

for _ens, ensdf in df.groupby("ENSEMBLE"):
dframe = (
ensdf.groupby(["WELL", "DATE", "ZONE", "TVD"]).mean().reset_index().copy()
ensdf.groupby(["WELL", "DATE", "ZONE", "TVD"])
.mean(numeric_only=True)
.reset_index()
.copy()
)
trace = {
"x": dframe["OBSERVED"],
Expand Down

0 comments on commit aa84f0a

Please sign in to comment.