I have a data frame as shown below:
I need to delete items that are less that 4 characters from the column CityIds. There could be spaces after comma, as there are thousands of elements under Items.
| CityIds |
|---|
| 98765, 98-oki, th6, iuy89, 8.90765 |
| 89ol, gh98.0p, klopi, th, loip |
| 98087,PAKJIYT, hju, yu8oi, iupli |
For example: I want to remove th6 or show th6 in a separate column.
answer above is obviously cleaner; but, here I added a new column for excluded IDs:
will return:
-- Hope this helps