title: Pandas - AttributeError: 'DataFrame' object has no attribute 'map'
body: <p>I am trying to create a new column in an dataframe, by creating a dictionary based on an existing column and calling the 'map' function on the column. It seemed to be working for quite some time. However, the notebook started throwing </p>
  
  <blockquote>
    <p>AttributeError: 'DataFrame' object has no attribute 'map'</p>
  </blockquote>
  
  <p>I haven't changed the kernel or the python version. Here's the code i am using. </p>
  
  <pre><code>dict= {1:A,
         2:B,
         3:C,
         4:D,
         5:E}
  
  # Creating an interval-type 
  data['new'] = data['old'].map(dict)
  </code></pre>
  
  <p>how to fix this?</p>