Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +-----------+
- | size |
- +-----------+
- | 10-90 |
- | <10 |
- | 100-200 |
- | 10-90 |
- | 500-800 |
- | 10000+ |
- | <10 |
- | 1000-4999 |
- +-----------+
- import pandas as pd
- y = pd.Categorical(train['size'],ordered=True)
- [10-90, <10, 100-200, 10-90, 500-800, 10000+, <10, 1000-4999]
- Categories (6, object): [10-90 < 100-200 < 1000-4999 < 10000+ < 500-800 < <10]
Add Comment
Please, Sign In to add comment