# Redacted CSV files

## Format of a CSV file preview <a href="#preview-format-csv" id="preview-format-csv"></a>

For a CSV file preview, the preview displays the file content as a table.

By default, the preview only shows the output version of the CSV data.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2F2D5WwmpV1XBDBf2UQtZA%2FDatasetFilePreview_CSVOutput.png?alt=media&#x26;token=bd8b6586-d800-45ec-971e-1bd33154e0bb" alt=""><figcaption><p>CSV file preview showing the output only</p></figcaption></figure>

To display both the source and output, click the split view icon.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FrpahtxfVEDjuwm5ShYeM%2FDatasetFilePreview_CSV.png?alt=media&#x26;token=436100ad-1ecb-4238-a39d-204aef72b9f3" alt=""><figcaption><p>CSV file preview showing both source and output</p></figcaption></figure>

For each column, the header row indicates:

* The current CSV column content type.
* Whether the content type was determined during the detection, or set manually by a user.

For structured sensitive columns, the output column values reflect the entity type handling option for the entity type.

## Configuring CSV column content types

### Available column content types

When Textual processes a CSV file, it identifies the content of each column as one of the following:

* **Sensitive -** The column values are of a single type and format, and the values match an entity type.
* **Not sensitive -** The column values are of a single type and format, but the values do not match an entity type.
* **Unstructured -** Each column value might contain multiple entities of different types. For example, a column that contains notes or a longer description.

### Selecting the column content type

From the file preview, you can review and change the content type assignments for each column.

To change the assigned CSV column content type:

1. In the output table heading, click the dropdown icon.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2Fg7MUdQIRrdrnEXFLSwzs%2FDatasetFilePreview_CSVColumnConfig.png?alt=media&#x26;token=c1b3e2b1-cbf3-4035-8123-66f08782273d" alt=""><figcaption><p>Column configuration panel for a CSV column</p></figcaption></figure>

2. On the configuration panel, click the column content type.
3. If you clicked **Sensitive**, then from the **Column entity type** dropdown list, select the entity type for the column values. Textual displays the current configured handling type for the selected entity type.
4. If you clicked **Sensitive** or **Not Sensitive**, then to save the changes, click **Save**.\
   \
   Changing the content type to Unstructured requires a rescan of the file. If you clicked **Unstructured**, then:
   1. To save the changes and rescan the file, click **Save & Scan**.
   2. To save the changes, but not rescan the file, click **Save**. If you save without rescanning the file, then Textual marks the file as requiring a rescan.
