From the course: Applied AI for Human Resources
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Prepare for embedding - Python Tutorial
From the course: Applied AI for Human Resources
Prepare for embedding
- [Instructor] We will prepare the ratings data for embedding in this video. The exercise for this chapter is code 04 XX Recommend Courses To Employees. First, let's make sure that all the required dependencies are installed in this virtual environment, by running the install command. Now let's load the course employee rating start CSV file into a pandas data frame. We then review the contents to ensure correctness. Let's run this code now. We can see that the file is correctly loaded. Next, we build two data frames with a unique list of employees and courses. We first build the employee list by selecting the unique list of employee IDs and names from the ratings data frame. We then do a similar exercise for the course list. We then print the sizes of these lists. Let's execute the code and review the results. We see that there are a total of 638 unique employees and 25 courses in this dataset. Now we will start building…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.