title: Retrieve data from two columns of csv file based on user input
body: <p>I have this csv file named sample.csv:</p>
  <pre><code>CODE     HOME_TEAM     AWAY_TEAM 
  0001        Lakers          Jazz          
  0002       Raptors        Lakers             
  0003      Warriors      Portland           
  0004     Mavericks        Lakers          
  0005       Celtics     Mavericks
  </code></pre>
  <p>I wish to print every game the team participated based on the user input.  Suppose that in the example above, the user inputs &quot;Lakers,&quot; the program should print:</p>
  <pre><code>CODE     HOME_TEAM     AWAY_TEAM 
  0001        Lakers          Jazz          
  0002       Raptors        Lakers                     
  0004     Mavericks        Lakers          
      
  </code></pre>
  <p>So far, what I've coded (see below) prints the information separately.</p>
  <pre><code>import pandas as pd
  
  df = pd.read_csv(&quot;sample.csv&quot;)
  
  select_Team = input(&quot;Which team do you like to see: &quot;)
  df2 = df[df[&quot;HOME_TEAM&quot;] == select_Team]
  df3 = df[df[&quot;AWAY_TEAM&quot;] == select_Team]
  print(df2)
  print(df3)
  </code></pre>
  <p>What should I do to present the information as one (like the one I've shown above)?</p>