How do I check if all elements of DataFrame are non-negative?

前端 未结 0 1810
长情又很酷
长情又很酷 2020-12-12 17:49

Suppose I have a DataFrame with numeric elements. I want to check that all the elements are non-negative. I can do something like:

df .> 0

相关标签:
回答
  • 消灭零回复
提交回复
热议问题