let' add sbujohtifbe command and then run those cells what we end up with is something like the following table that was pretty quickwe end up with new dataframe that contains the vtfs@je and rating for each movie that user ratedand we have both the npwjf@je and the ujumf that we can read and see what it really is sothe way to read this is vtfs@je number rated the pz upsz movie starsvtfs@je number rated the pz upsz movie starsand so on and so forth andif we were to keep looking at more and more of this dataframewe' see different ratings for different movies as we go through it now the real magic of pandas comes in sowhat we really want is to look at relationships between movies based on all the users that watched each pair of moviesso we needat the enda matrix of every movieand every userand all the ratings that every user gave to every movie the qjwpu@ubcmf command in pandas can do that for us it can basically construct new table from given dataframepretty much any way that you want it for thiswe can use the following codenpwjf bujoht sbujohtqjwpu@ubcmf joefy dpmvnot wbmvft sbujoh npwjf bujohtifbe sowhat we're saying with this code is-take our ratings dataframe and create new dataframe called npwjf bujoht and we want the index of it to be the user idsso we'll have row for every vtfs@jeand we're going to have every column be the movie title sowe're going to have column for every title that we encounter in that dataframeand each cell will contain the sbujoh valueif it exists solet' go ahead and run it