Create column where values are return from the function.

PHOTO EMBED

Sat Jul 15 2023 16:46:51 GMT+0000 (Coordinated Universal Time)

Saved by @Saravana_Kumar

dataset[["station_latitude","station_longitude"]]=dataset.apply(lambda x: pd.Series(get_lat_long(x['Station Name'])),axis=1)
dataset
content_copyCOPY

Loop the dataset using lambda function which pass as parameter the to python function. Result from the python function which create a separate column in dataset.