title: How to apply linear regresssion of sklearn for some string variable
body: <p>I am going to predict the box office of a movie using logistic regression.
  I got some train data including the actors and directors. This is my datas:</p>
  
  <pre><code>Director1|Actor1|300 million
  Director2|Actor2|500 million
  </code></pre>
  
  <p>I am going to encode the directors and actors using integers.</p>
  
  <pre><code>1|1|300 million
  2|2|300 million
  </code></pre>
  
  <p>Which means that <code>X={[1,1],[2,2]} y=[300,500]</code>and <code>fit(X,y)</code>
  Does that work?</p>