I want to get locality from address

  data-science, nlp, python, user-defined-functions

I’m working of 1 Customer dataset. In address column detail address is given from particular city. I have one more data frame where All localities & Pin code is given. I want to write python function where I will pass address & I will get output as a Locality of that address. In another function I will pass Address & I will get Pin code of that address as output.
Address includes things line : Flat Number (float), Lane number (), Area name, Nearest
Landmark, City Name , last 2 digit of pin code.

Source: Python Questions