UserWarning about regular expression - safe to ignore? #379
-
Greetings! I am trying to extract multiple values at once, e.g.
Is it safe to ignore the following message?
Thank you! Jeremy |
Beta Was this translation helpful? Give feedback.
Answered by
williamhobbs
Oct 29, 2024
Replies: 1 comment 2 replies
-
It seems to work either way, but I think this will get rid of the warning for you:
You could also write it as:
(idea from https://stackoverflow.com/a/71374335/27574852) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
blaylockbk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems to work either way, but I think this will get rid of the warning for you:
ds = H.xarray('(?:RH:2)|(?:TMP:2)')
You could also write it as:
ds = H.xarray('(?:TMP|RH):2 m')
(idea from https://stackoverflow.com/a/71374335/27574852)