LogoLogo
About
Tables: v2
  • Home
  • Guides
  • BDK
  • REST API
  • Release Notes
Tables: v2
  • Getting Started
    • Tables Overview
  • Table Creation
    • Create a Table
    • Create a Sample Table
    • Create a Pivot Table
    • Create an Integer Table
    • Create a Table from JSON
    • Create a Combined Table
    • Get a Table from a File
  • Rows
    • Get Rows
    • Get Row Count
    • Get Row Number
    • Get Value from Row
    • Insert a Row
    • Insert an Empty Row
    • Remove Duplicate Rows
    • Set a Row to JSON
  • Columns
    • Get a Column
    • Get a Column's Values
    • Get a Column Number
    • Get Column Count
    • Get Column Stats
    • Get Column Names
    • Change a Column's Data Type
    • Delete Columns
    • Insert a Column
    • Move a Column
    • Rename a Column
    • Rename Columns
    • Round a Column's Values
    • Update a Column
  • Cells
    • Set a Cell in a Table
  • Conversions
    • Convert CSV to a Table
    • Convert a Table to CSV
    • Convert a Table to Excel
  • Manipulations
    • Clear a Table
    • Combine Tables
    • Copy a Table
    • Extract a Subtable
    • Query a Table
    • Sort a Table
    • Replace a Value
    • Replace a Value in a Column
    • Transpose a Table
Powered by GitBook
On this page
  • Overview
  • Input Concepts
  • Output Concepts
  • Examples

Was this helpful?

Export as PDF
  1. Columns

Change a Column's Data Type

Casts a specified column in the table to a given data type.

Overview

This procedure allows you to change the data type of a specific column within a table. This is useful when the original data type is incompatible with the operations you want to perform.

Input Concepts

Concept
Type
Description
Default
Required

table

table

The table containing the column to be cast.

No default

Yes

type

string

The target data type to cast the column to.

No default

Yes

Output Concepts

Concept
Description

table

The table with the column cast to the specified type.

Examples

1. Cast an Integer Column to a Float

create an integer table
cast the table's "Amt" column to "float"
Amt
Min
Max

100.0

10

300

200.0

5

500

Last updated 21 days ago

Was this helpful?