apply string function to string in dataframe

Viewed 18

I have a code to split "address" into city/province/zip code (for only Thai language). The code is simple but I don' t know how to apply this to my string address in my dataframe. Because the example code is shown the "Address" just string.

for example

!pip install ThaiAddressParser
import ThaiAddressParser
address = "00001 ถนน พหลโยธิน แขวงพญาไท เขตพญาไท กรุงเทพมหานคร 10400"
address_pasre = ThaiAddressParser.parse(address)
0 Answers
Related