> For the complete documentation index, see [llms.txt](https://docs.perigee.software/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.perigee.software/examples-and-demos/name-split.md).

# Name Split

In this simple example, We show how to load in a source file, split the name column into it's first and surnames, then re-save the file.&#x20;

{% hint style="success" %}
This uses the [Transformer](/transform-sdk/quick-start-guide.md) to load data which means it goes through the data identification, cleaning, and import process it uses. To read more about it, check out the [Transforms ](/transforms/what-is-transforms.md)section!

[F(x) Expressions](/core-modules/utility-classes/f-x-expressions.md) are powerful "formulas" you can apply to your data. Check them out to see what else you can use!
{% endhint %}

```csharp
//Read file, add first and last name
var tblname = Transformer.TableFromFile(@"InputFile.csv");
tblname.Columns.Add("FirstName", typeof(string));
tblname.Columns.Add("LastName", typeof(string));

//Run an Fx expression over both new columns, splitting up the FullName into it's first and surnames
tblname.FxTable(new Dictionary<string, string>() {
    {"FirstName", "name([FullName], 'first')" },
    { "LastName", "name([FullName], 'surname')" }});

//Resave the CSV!
File.WriteAllText(@"Outfile.csv", tblname.ToCSV());
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.perigee.software/examples-and-demos/name-split.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
