title: Creating a dataframe that contains two specific years that's from a dataframe
body: <p>I'm using pandas and I've been stuck with making a new DataFrame for the years 2012 and 2015 and both the 'Team' TOR and NYA. I have imported a .csv file and that's where I want to call the year 2012 and 2015 and put them into a single DataFrame.</p>
  <pre><code>df_2012 = pd.DataFrame(df_baseball[(df_baseball['Year '] == 2012) &amp; 
                                     (df_baseball['Year '] == 2015) &amp; 
                                     (df_baseball['Team '] == 'TOR') &amp; 
                                     (df_baseball['Team '] == 'NYA')], 
                         columns = ['Games_Won', 'Runs_Scored','At_Bats','Hits',
                                    'Doubles','Triples','Home_Runs','Walks', 
                                    'Runs_Against','Earned_Runs',
                                    'Earned_Run_Average','Complete_Games',
                                    'Shutout','Saves','Infield_Put_Outs',
                                    'Hits_Allowed','Home_Run_Allowed', 
                                    'Walks_Allowed','Strikeouts_Allowed',
                                    'Errors','Fielding_Percentage'])
  </code></pre>
  <p>Am I using the wrong operator or is my syntax wrong? Would highly appreciate the responses!</p>