Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thanks so much John this worked! Also I appreciate your detailed answer distinguishing between SQL/Python and lowercase etc. Can i put multiple substring values into a line? such as if "Quercus" or "Acer" in d_Species: return 3 ? Commented Mar 21, 2019 at 19:38
  • You can put multiple tests in one If statement (separated by either or / and), but you would have to write the full comparison statement for each. Example: if "quercus" in d_Species.lower() or "acer" in d_species.lower(): return 3 Commented Mar 22, 2019 at 14:16