I had to cast a subset of columns of a big DataFrame in pandas... it was very slow. So I made a few tests and discovered that the casting itself is done very fast. But Pandas seems to be slow when attributing the newly casted values to the old DataFrame.
I then came up with another solution performing a join and avoiding attributing to a column subset which runs pretty fast.
Why is pandas so slow? Might this be a bug? Can anyone reproduce the results?
Edit:
More tests and the code used to produce the DataFrame.

