Skip to content

Commit 80ef7ef

Browse files
EliEli
authored andcommitted
Fix multiindex bug where series is expected.
1 parent f3de3f9 commit 80ef7ef

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

schimpy/batch_metrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ def plot(self):
587587
for simout in sim_outputs:
588588
if (station_id, subloc) in simout.columns:
589589
s = simout.loc[:, (station_id, subloc)]
590+
s = s.squeeze()
590591
if isinstance(s, pd.DataFrame):
591592
raise (
592593
"Station,Sublocation pair ({},{}) not unique or some other uniqueness problem in station files".format(

0 commit comments

Comments
 (0)