First time poster - Thanks in advance for your help!
I am reading in over a 1000 data input entries from a ".csv" file that look like the following list:
I'm attempting to simplify the plethora of inputs. For example, replace all inputs that contain "curfew" or "12:30am" with a uniform word like "curfew". I aim to generate a more uniform list of inputs that looks like the following:
Any advice/code? Thanks so much
I am reading in over a 1000 data input entries from a ".csv" file that look like the following list:
Code:
can't drive after midnight and before 5am
cannot drive from 12:30am-5am
Be off the road by 12:30am
I don't know
12:30 curfew
curfew-12:30
idk
Code:
curfew
curfew
curfew
idk
curfew
curfew
idk
Last edited: