I have the following DataFrame with non-integer index:
DataFrame
df = pd.DataFrame(index=[1.0,1.4,2,2.5], data={\'a\': [\'a\',\'b\',\'a\',\'b\']}) a