I have a dataset of used cars, there is a column of prices in the dataset. I want to introduce a new ordinal column with the values (high, medium, and low) considering the prices of cars like so:
| price | ordinal |
|---|---|
| higher than 20,000 | high |
| 10,000-20,000 | medium |
| below 10,000 | low |

You can try with
cut