Converting Column Types

You can easily convert a column from one type to another using the data type icon in Prep Data or the Column List dialog. You can also convert data types by using the Convert operations.

Converting columns types using the Data Type icon

Icons on the header readily tell you a column's data type:

 Date/Time

 Number

 Text

 

You can quickly convert from data type to another following these steps.

  1. Click on the data type icon beside the name of the column you want to convert.

  2. Select the new data type.

Converting column types using the Column List dialog

The Column List dialog provides another means for you to convert data types in Data Prep Studio.

  1. Right-click on a column whose type you wish to convert and, from the options that display, select Column List.

    The Column List dialog displays.

  2. Use the drop down provided in the Type column to select a new data type for your column.

     

  3. Click OK when you are finished.

Converting column types using the Convert operation

You can quickly convert from one data type to another following these steps.

  1. In Prep Data, right click on a column and select Convert from the context menu to display possible conversions.

  2. Select the convert operation you want to carry out:

    Note that the operations you can select depend on the column's current data type.

Editing column type changes in the Change History panel

You can modify the column type changes in the Change History panel by following these steps:

  1. Display the Change History List panel.
  2. Select the Edit icon beside the column type change you want to review or edit.

     

    The Convert Column dialog box displays:

  3. Modify the settings available and then click OK.

 

The following column type changes can be edited via the Change History panel:

Column Type Change Options Available
Text to Numeric

Decimal separator: The character to use in separating decimals in numeric values. The available options are period and comma.

Text to Date

Date Format: The format of dates used when converting text into date values. The available options are as follows:

  • M/D/Y
  • D/M/Y
  • Y/M/D

First Year of Century: Used for converting two-digit years into four-digit years. The default value is 50.

Extraction Patterns: The patterns searched for when converting text values into date/time values.

Numeric to Text

Locale: Used to set the language when converting numeric values to text values.

Date to Text

Locale: Used to set the language when converting date/time values to text values.

 

 

 

 

© 2024 Altair Engineering Inc. All Rights Reserved.

Intellectual Property Rights Notice | Technical Support