title: Replacing Column Values in Pandas
body: <p>I need to clean data in pandas for subsequent analysis but there is a little problem. </p>
  
  <p>On the dataframe.head and in the real dataset the data is to 5 decimal place but when i check indindividually it is somewhat slightly changed. For example 0.49788 becomes 0.49788000000000004</p>
  
  <p>I tried using map and replace to change the values but getting error.</p>
  
  <pre><code>data['Gender'] = data['Gender'].map({'0.48246' : 'Female', '-0.48246': 'Male'}) 
  </code></pre>
  
  <p>will give me Nan in the columns </p>
  
  <p>while age = <code>{'-0.95197' : '18-24', '-0.07854': '25-34', '0.49788':'35-44', '1.09449':'45-54', '1.82213':'55-64', '2.59171':'65+'}</code> and <code>data = data.replace({'Age': age,)</code> shows errors.</p>