When a Pandas DataFrame is converted into a Python dictionary:
|
data_blob.extend(chunk.to_dict('records')) |
precision of some numbers increase unexpectedly (0.999-->0.999000000001):

There is also a post on stackoverflow about it.
Tashrif's solution:
chunk.round(5).to_dict('records')