A t test would also have given us a similar result, however, I chose to perform the z test because the number of observations (length of the dataframe) was high for a t test.