Loading...

vastorbit.VastColumn.isnum

VastColumn.isnum() bool

Returns True if the VastColumn is numerical, False otherwise.

Returns:

True if the VastColumn is numerical.

Return type:

bool

Examples

We import vastorbit:

import vastorbit as vo

Hint

By assigning an alias to vastorbit, we mitigate the risk of code collisions with other libraries. This precaution is necessary because vastorbit uses commonly known function names like “average” and “median”, which can potentially lead to naming conflicts. The use of an alias ensures that the functions from vastorbit are used as intended without interfering with functions from other libraries.

Let’s create a small dataset:

data = vo.VastFrame(
    {
        "empid": [1, 2, 3, 4],
        "is_temp": [True, False, False, True],
    }
)
data
123
empid
Integer
0|1
is_temp
Boolean
13
21
32
44
Rows: 1-4 | Columns: 2

Let’s check if data type of “empid” VastColumn is numerical or not.

data["empid"].isnum()