If you press More Actions in the Upgrade tab of a weapon, companion, or frame, you can choose to swap polarities of mod slots around. For example, if slot 1 has polarity A and slot 2 has polarity B, and you swap them, then slot 1 would have polarity B and slot 2 would have polarity A.
Is this actually useful for anything? The only thing I can think of is that it might be useful to change the polarity of an aura/stance slot, but apart from that, it seems somewhat useless.