Le 13/11/2013 17:54, Daπid a écrit :
>
> np.savetxt('a.csv', [1], fmt=str('%.3f'))
Thanks, that's what I did too.I'm just still wondering whether there is a cleaner solution... > > Without the str, I get a clearer error: > ValueError: invalid fmt: u'%.3f' > Yeah, the commit by Warren Weckesser makes things much clearer. -- Pierre
signature.asc
Description: OpenPGP digital signature
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
