@beginner Good point, I forgot about that option. On my pc, performing the operation in Python takes 7.2 seconds, faster than I expected. In pure Python this would be near instantaneous… Indeed serialization is the slow step here, even for really small tables (see for example here).
With R it is even faster: 3.5 seconds. Puzzling.