title: Python Notebook - split Year and Month into 2 different columns
body: <p>I have 1 column in my python notebook called Date. This contains 2017-05</p>
  
  <p>I need to split this into 2 columns so one called Year and One MonthNo?</p>
  
  <p>Code i have atm;</p>
  
  <pre><code>import calendar
  from datetime import datetime
  
  crimes['NewDate'] = crimes['Date'].apply(lambda x: datetime.strptime(x.split( [0], '%Y-%m'))
  
  crimes['MonthNo'] = crimes['Date'].apply(lambda x: str(x.split()[0].split('-')[0]))
  
  monthDict = {'01' : 'Jan', '02' : 'Feb', '03' : 'Mar', '04' : 'Apr', '05' : 'May', '06' : 'June', '07' : 'Jul', '08' : 'Aug', '09' : 'Sep', '10' : 'Oct', '11' : 'Nov', '12' : 'Dec' }
  
  crimes['Month'] = crimes['MonthNo'].apply(lambda x: monthDict[x])
  crimes.head()
  </code></pre>