As far as I remember the reason for this behavior was a potential bug in pandas.
There was also a PR 29 which wasn’t merged due to potential performance issues.
Your workaround might work, so thanks for posting it here.