Skip to content

Commit

Permalink
build xy_oc from series with x and y
Browse files Browse the repository at this point in the history
prevent #210 and fix #209
  • Loading branch information
martinvonk committed Apr 12, 2024
1 parent 64c34f7 commit 368e615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydropandas/obs_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2353,7 +2353,7 @@ def interpolate(
f" found {', '.join([x.__name__ for x in otype])}."
)

xy_oc = self.loc[:, ["x", "y"]]
xy_oc = pd.concat([self.loc[:, "x"], self.loc[:, "y"]], axis=1)
obsdf = util.oc_to_df(self, col=col)

fill_df = util.interpolate(
Expand Down

0 comments on commit 368e615

Please sign in to comment.