Skip to content

Commit

Permalink
Merge pull request #1044 from akrherz/241230
Browse files Browse the repository at this point in the history
🎨 Address pandas warning
  • Loading branch information
akrherz authored Dec 30, 2024
2 parents ba0afa8 + 9c7f3f0 commit 7bf8c03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pylib/iemweb/autoplot/scripts200/p208.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def m(valid):
if ctx["n"] != "off" and (
(p1 in ["SV", "TO", "FF", "MA"] and s1 == "W") or ctx["n"] == "on"
):
prod = "N0Q" if df["issue"][0].year > 2010 else "N0R"
prod = "N0Q" if df["issue"].iloc[0].year > 2010 else "N0R"
radval = mp.overlay_nexrad(
utcvalid.to_pydatetime().replace(tzinfo=timezone.utc),
product=prod,
Expand Down
4 changes: 2 additions & 2 deletions pylib/iemweb/autoplot/scripts200/p217.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ def plotter(fdict):
is_firewx=is_fwx,
)
if ctx["n"] != "off":
prod = "N0Q" if df["issue"][0].year > 2010 else "N0R"
prod = "N0Q" if df["issue"].iloc[0].year > 2010 else "N0R"
radtime = mp.overlay_nexrad(
df["issue"][0].to_pydatetime(), product=prod
df["issue"].iloc[0].to_pydatetime(), product=prod
)
if radtime is not None:
mp.fig.text(
Expand Down
2 changes: 1 addition & 1 deletion pylib/iemweb/autoplot/scripts200/p226.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def plotter(fdict):
)
mp.drawcounties()
radtime = mp.overlay_nexrad(
df["issue"][0].to_pydatetime(),
df["issue"].iloc[0].to_pydatetime(),
product="N0Q",
caxpos=[-0.6, 0.05, 0.35, 0.04], # TODO make this appear nicer
)
Expand Down

0 comments on commit 7bf8c03

Please sign in to comment.