Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. cell_categories = to_categorical(dataset['cell'])
  2. dataset = dataset.join(pd.DataFrame(cell_categories))
  3. dataset = dataset.drop(columns=['cell'])
  4. print(pd.DataFrame(cell_categories).describe())
  5. print(dataset.describe())
  6.  
  7. 0 1 2 3 4 5 6 7 8
  8. count 4572.000000 4572.000000 4572.000000 4572.000000 4572.000000 4572.000000 4572.000000 4572.000000 4572.000000
  9. mean 0.111111 0.111111 0.111111 0.111111 0.111111 0.111111 0.111111 0.111111 0.111111
  10. std 0.314304 0.314304 0.314304 0.314304 0.314304 0.314304 0.314304 0.314304 0.314304
  11. min 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
  12. 25% 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
  13. 50% 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
  14. 75% 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
  15. max 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000 1.000000
  16. Rownum avg_users x 0 1 2 3 4 5 6 7 8
  17. count 4572.000000 4572.000000 4572.000000 4572.0 4572.0 4572.0 4572.0 4572.0 4572.0 4572.0 4572.0 4572.0
  18. mean 254.500000 4.771667 18.956255 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0
  19. std 146.662724 6.912038 5.553094 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
  20. min 1.000000 0.000000 10.000000 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0
  21. 25% 127.750000 0.107500 20.000000 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0
  22. 50% 254.500000 2.245000 20.000000 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0
  23. 75% 381.250000 6.030000 20.000000 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0
  24. max 508.000000 43.390000 62.000000 0.0 0.0 0.0 0.0 0.0 0.0 1.0 0.0 0.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement