code: def alter_partition(
          self,
          spec,
          location=None,
          format=None,
          tbl_properties=None,
          serde_properties=None,
      ):
          
          part_schema = self.partition_schema()
  
          def _run_ddl(**kwds):
              stmt = ddl.AlterPartition(
                  self._qualified_name, spec, part_schema, **kwds
              )
              return self._execute(stmt)
  
          return self._alter_table_helper(
              _run_ddl,
              location=location,
              format=format,
              tbl_properties=tbl_properties,
              serde_properties=serde_properties,
          )
docs: Change setting and parameters of an existing partition
  
          Parameters
          ----------
          spec : dict or list
            The partition keys for the partition being modified
          location : string, optional
          format : string, optional
          tbl_properties : dict, optional
          serde_properties : dict, optional
  
          Returns
          -------
          None (for now)