I have an Excel file like this :
When I try to read it as a dataframe and then convert it in a dict...
df = pd.read_excel(r"C:\Users\crd\Downloads\Classeur1.xlsx", sheet_name = "Feuil1", encoding="Latin-1")
print(df)
... I have this output :
  Label    Value1    Value2
0     C  -0.50000   1.80000
1     A  92.92768  92.92768
But when I would like to convert it into a dict, I have this output :
[
    {'Label': 'C', 'Value1': -0.5, 'Value2': 1.7999999999999998}, 
    {'Label': 'A', 'Value1': 92.92768, 'Value2': 92.92768}
]
Why does 1.8 becomes 1.7999999999999 after the dataframe being converted to dict and not when being created ?

 
    