Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove special characters from dictionary python

clean_dict = {str(key).strip(): re.sub(r"[^a-zA-Z0-9 ]", "", str(item)) for key, item in response.items()}
print(clean_dict)
 
PREVIOUS NEXT
Tagged: #remove #special #characters #dictionary #python
ADD COMMENT
Topic
Name
9+6 =