# GRADED FUNCTION: preprocess_dataset

Thank you for your response!

I believe I have figured out the error but trying it in a different way leads to another error “name ‘labels’ is not defined”. I will DM you the code to discuss on this further.

This points you your code correction bring incorrect. also as per discussion in DM, please create a separate topic for your issue as I saw you got more errors and I don’t want mix up this thread.

Closing this topic as the last learner has created a new topic.