vastorbit.VastColumn.isarray¶
- VastColumn.isarray() bool¶
Returns True if the VastColumn is an array, False otherwise.
- Returns:
True if the VastColumn is an array.
- 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 fromvastorbitare used as intended without interfering with functions from other libraries.Let’s create a small dataset.
data = vo.VastFrame( {"artists": ["Inna, Alexandra, Reea", "Rihanna, Beyonce"]} ) data["artists"].astype("array")
🛠artistsArray(varchar(21))1 ['Rihanna', ' Beyonce'] 2 ['Inna', ' Alexandra', ' Reea'] Rows: 1-2 | Column: artists | Type: array(varchar(21))Let’s check if data type of “artists” VastColumn is array or not.
data["artists"].isarray()