简体   繁体   中英

How to calculate slope using python with the data below?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM