import math
x=...
if math.isnan(float(x)):
....
因为在使用pylab画图的时候遇到这个输出:
max must be larger than min in range parameter.
大部分情况下这个意思是代表你的数列里面有nan
有些数列对象有自己的 dropnan函数,比如 panda对象
import math
x=...
if math.isnan(float(x)):
....
因为在使用pylab画图的时候遇到这个输出:
max must be larger than min in range parameter.
大部分情况下这个意思是代表你的数列里面有nan
有些数列对象有自己的 dropnan函数,比如 panda对象