"write a python code to get distinct first names":
# import libraries
import pandas as pd
import numpy as np
# read the dataframe (requires sql set up - exercise for the reader)
df = pd.read_sql('SELECT * FROM employees', con=mydb)
# parse the full name into first name and surname (from previous contributor)
df['First Name'] = df['fullname'].apply(lambda x: x.split(' ')[0])
df['Surname'] = df['fullname'].apply(lambda x: x.split(' ')[1])
# load the first name df in to a numpy array to use built in np 'unique' function
x = np.array(df['First Name'])
# print the unique names using the np.unique function
print(np.unique(x))