My data looks like this:
Can you please let me know how to calculate slope in this case when there blank values?
If you get an error, you can just use the try, except tool in python. It first tries the statement you give it, and if it gives an error back you can skip that exception, print an error, etc.
try:
slope = [slope calculation]
except:
print 'not enough data'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.