Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. import pandas as pd
  2. from pandas.plotting import andrews_curves
  3.  
  4. def andrews_curves(df, class_column, normalize = False):
  5. plt.style.use("ggplot")
  6. plt.figure()
  7. andrews_curves(df, class_column)
  8. plt.draw()
  9.  
  10. andrews_curves(players, "RANK")
  11.  
  12. plt.show()
  13.  
  14. def parallel_coords(df, class_column):
  15. plt.style.use("ggplot")
  16. plt.figure()
  17. parallel_coordinates(df, class_column = class_column, cols = list(df), alpha = 0.4)
  18. plt.draw()
  19.  
  20. parallel_coords(players, "RANK")
  21. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement