I am new to python and I am doing an apprenticeship at work, I have the following code but it is not adding the longitude and latitude to my data frame, can anyone point me in the right direction?
import pandas as pd
from geopy.geocoders import Nominatim
sales = pd.read_csv('file_path/ppd_data.csv')
sales['co-ordinates'] = sales['postcode'].apply(geolocator.geocode).apply(lambda x: (x.latitude, x.longitude))
sales
sales.head()
Hoping to get the longitude and latitude into the main data frame.
Table This data is from the land registry and I want to add the longitude and latitude for creating the mapping points.