title: Round up to 5 or 10 to create a new df
body: <pre><code>data = [{'A':"JAN", "B": 1133.3, "C": 1150.0}, {'A':"FEB", "B": "1133.3", "C": 1140.0}, {'A':"MAR", "B": "1133.3", "C": 1150.0}]
  
  df = pd.DataFrame(data)
  </code></pre>
  
  <p>I want to create a new df with next conditions:</p>
  
  <ul>
  <li>Select the row where "C = B round up to 5" <em>(C = 1135.0)</em></li>
  <li>If it doesn´t exist (that´s the case), select the row where "C = B round up to 10" <em>(C = 1140.0)</em></li>
  </ul>
  
  <p>I´ve tried:</p>
  
  <pre><code>def roundup5(x):
      return int(math.ceil(x / 5.0)) * 5
  i = float(roundup5(df.values[0][1]))
  
  def roundup10(x):
      return int(math.ceil(x / 10.0)) * 10
  v = float(roundup10(df.values[0][1]))
  
  if (df["C"] == i) is False:
      print (df.loc[df["C"] == v])
  else:
      print (df.loc[df["C"] == i])
  </code></pre>
  
  <p>Any help? Thank you.</p>