code: def assign(self, droplet_id):
          
          return self.get_data(
              "floating_ips/%s/actions/" % self.ip,
              type=POST,
              params={"type": "assign", "droplet_id": droplet_id}
          )
docs: Assign a FloatingIP to a Droplet.
  
              Args:
                  droplet_id: int - droplet id