title: How can I create a dataframe of movies X genres using the original dataframe?
body: <p>I'm using movielens database and I need to create a dataframe about movies X genres in python. In other words, I need to transform the dataframe in a new binary dataframe.</p>
  
  <p><a href="https://i.stack.imgur.com/DiJv0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DiJv0.png" alt="This is the original dataframe"></a></p>
  
  <p><a href="https://i.stack.imgur.com/O4B1Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O4B1Y.png" alt="This is the dataframe I need to be created"></a></p>
  
  <p>How can I do this in a optimized way?</p>