Open roblanf opened 6 years ago
It happens with the last digit as:
2, 3, 4, 5
but not with
1, 9, 8, 0
using a pandas dataframe should be good.
This almost works (but I'm not good enough at pandas...)
p=pd.DataFrame()
columns = ['Dataset','Charset','Test','Sp1','Sp2','pvalue']
pd.DataFrame(columns=columns)
a = 4.4226657709978134e-05
p.append(pd.DataFrame([['Dataset','Charset','Test','Sp1','Sp2', a]], columns=columns), ignore_index=True)
p
almost works, but not quite...
Additional note. The numpy behaviour above was with Python 3.5.4
and numpy 1.11.1-py35_0
Updating numpy to 1.14.2-py35ha9ae307_1
the same issue occurs
Is numpy cutting digits off when it converts to string??
Reproducible example:
Where it does a bad thing...
but changing one digit of the input number seems to work fine: