python - save currencies to pandas store with precision (as Decimal?) -
I work a lot with currencies in pandas till this point I am using default floats, but lack of precision Dealing with is troubling and error prone. I'm trying to switch to using decimal for a few pieces, whereas when this is probably very slow, it is accurate but when I try to save in the Pandos Store (Such as hdf5store via pytables) I find: TypeError: can not serial column [O] because its data content is [mixed] object DTP What do I do There is a small sample of am trying to: import as import Import pandas as decimals by decimals by teststore = pd.HDFStore ('teststore.h5') df = pd.DataFrame (data = {'o': [decimal ('5.1')]} TestStore ['Test'] = DF .. which raises the exception. df.convert_objects (convert_numeric = true) help Is there a way to save a decimal in a Pond's shop, and if not, then a recommended method is to store currencies in the Pandos Store I python 2.7.8, panda 0.14 .1, and I'm using Paitable 3.1.1...