Guest User

Untitled

a guest
Feb 16th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. plt.figure(),
  2. plt.subplot(211)
  3. plt.scatter(df.NOX, df.PTRATIO)
  4. b, m = polyfit(x, y, 1)
  5. plt.plot(x, y, '.' )
  6. plt.plot(x, b + m * x, '-' )
  7. plt.show()
Add Comment
Please, Sign In to add comment