DataFrame.to_dict() is not always invertible

My main point is that:

assert_frame_equal(DataFrame.from_dict(df.to_dict()), df)

fails in some cases. I would love to provide with a reproducible example but (i) the data would be too big to post, and (ii) for this I would need to provide with a DataFrame serialized (which is precisely where this fails...)