def migrate(self, target, follow=True, **kwargs):
from solvebio import Dataset<EOL>from solvebio import DatasetMigration<EOL>if isinstance(target, Dataset):<EOL><INDENT>target_id = target.id<EOL><DEDENT>else:<EOL><INDENT>target_id = target<EOL><DEDENT>limit = kwargs.pop('<STR_LIT>', None)<EOL>if not limit and self._limit < float('<STR_LIT>'):<EOL><INDENT>limit = self._limit<EOL><DEDENT>params = self._build_query(limit=limit)<EOL>params.pop('<STR_LIT>', None)<EOL>params.pop('<STR_LIT>', None)<EOL>migration = DatasetMigration.create(<EOL>source_id=self._dataset_id,<EOL>target_id=target_id,<EOL>source_params=params,<EOL>client=self._client,<EOL>**kwargs)<EOL>if follow:<EOL><INDENT>migration.follow()<EOL><DEDENT>return migration<EOL>
Migrate the data from the Query to a target dataset.

Valid optional kwargs include:

* target_fields
* include_errors
* validation_params
* metadata
* commit_mode