Advertisement
Guest User

Untitled

a guest
Oct 6th, 2017
73
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. csv = pd.read_csv('file.csv')
  2. data=csv[['deformacia','napatie']]
  3. data=data.astype(float)
  4. x=data['deformacia']
  5. y=data['napatie']
  6. plt.scatter(x,y,s=1)
  7.  
  8.  
  9.  
  10. fit=np.polyfit(y,x,4)
  11. p=np.poly1d(fit)
  12. plt.plot(x,p(y),"r")
  13. plt.show()
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement