Skip to content

Commit

Permalink
readd dropna just in case
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMohrmann committed May 30, 2024
1 parent 1ebaee9 commit a4a27ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glidertools/optics.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ def grad_min(depth, fluor_diff, surface_layer=5):
df = pd.DataFrame(np.c_[flr, bbp], columns=["flr", "bbp"])
# get the binned averages for each batch and select the night
night_ave = df.groupby([day, batch, np.around(depth)]).mean()
night_ave = night_ave.xs(False, level=0, drop_level=True)
night_ave = night_ave.dropna().xs(False, level=0, drop_level=True)
# A second group where only batches are grouped
grp_batch = df.groupby(batch)

Expand Down

0 comments on commit a4a27ff

Please sign in to comment.