I can't say I've had the experience of replacing the vacuum cord yet but I expected the new cord would be with connectors or at least fit into the range. I ended up having to carefully remove the old connectors from the old cable and solder them onto the new cable. Yes, I could look for new connectors or order them online, but that was too time consuming for me.
Xiaomi Mi Robot Vacuum-Mop 2 Lite RU robot vacuum cleaner, white
198 Review
Robot vacuum cleaner Roborock S5 MAX Global, black
298 Review
Dyson V8 Absolute: The Ultimate Cordless Vacuum for Effortless Cleaning
142 Review
Xiaomi Mi Robot Vacuum Cleaner 1S Global Robot Vacuum Cleaner, white
389 Review