Transform by example easily helps you transform the data in any column just by providing examples of the output. Using this feature, you can enter the required output against a few cell values in your data column as examples and the rest of the output will be auto-generated for you, by applying ChatGPT API generated formula internally.
1. Right-click on a column and select the Transform by example option from the context menu.
2. An editable version of the selected column appears right next to the original column where you can type in the required output against a few cell values from your data column as an example, and press enter.

3. Once you enter the example, the rest of the column data is transformed, and the output column name is contextually auto-generated by ChatGPT based on your input prompt and shown as a preview. The formula script used to get the output is displayed in the Generated formula panel.
Transform by example is now equipped with a re-try mechanism which gets you the best result out of ChatGPT's response by re-trying the query automatically in a different way if the output data did not match your expectation.
4. For instance, I have given the domain name "zylker.com" here in letters as an example, and the transform automatically derives rest of the output using the auto-generated formula powered by ChatGPT.
5. If the generated output doesn't match your requirements for all the values, you can provide another example and press enter. DataPrep now takes the new input into consideration and generates a new way to transform the data.
6. The updated formula will also be displayed in the Generated formula field in the right panel.
5. Click the Apply to apply the transform.
Notes:
1. You can also modify the generated formula using the Customize option.
2. This converts the transform by example panel into a formula column transform. You can now use the full capability of the formula column feature to fine-tune the formula to your requirements.
3. You can also use the chat based formula builder powered by OpenAI ChatGPT to generate the required formula. Click here to learn more.
a) I want to change the format of the values in the date column below to the format that represents day along with the date. I just type in the example for the first value with "Thursday, 06 December 2018", and DataPrep fills the rest of the column with the required output. Here's the snapshot of the generated formula and the output.