Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test_string = str('19631 location android location you enter an area enable quick action honeywell singldzone thermostat environment control and monitoring')
- print(test_string)
- test_string = test_string.replace('singl\dzone ','singl_dbl_zone ')
- print(test_string)
- 19631 location android location you enter an area enable quick action honeywell singldzone thermostat environment control and monitoring
- 19631 location android location you enter an area enable quick action honeywell singl_dbl_zone thermostat environment control and monitoring
- raw_corpus.loc[:,'constructed_recipe']=raw_corpus['constructed_recipe'].str.replace('singl\dzone ','singl_dbl_zone ')
- 323096 you enter an area android location location environment control and monitoring honeywell singldzone thermostat enable quick action
- df['col'] = df['col'].str.replace(r'\d', '_dbl_')
- In [165]: df
- Out[165]:
- constructed_recipe
- 0 singldzone
- In [166]: df['constructed_recipe'] = df['constructed_recipe'].str.replace(r'\', '')
- In [167]: df
- Out[167]:
- constructed_recipe
- 0 singldzone
Add Comment
Please, Sign In to add comment