pandas regular expression code example
Example: how to apply regex to pandas column
import re
#a string
str = '{63_:_foo},,bar,_mango_,apple'
#split string into chunks
chunks = re.split('[{_}:,][_,]',str)
#print chunks
print(chunks)
import re
#a string
str = '{63_:_foo},,bar,_mango_,apple'
#split string into chunks
chunks = re.split('[{_}:,][_,]',str)
#print chunks
print(chunks)