compute_vmap_keys¶
In [ ]:
compute_vmap_keys(expr,
vmap_col: str,
limit: int,)
Computes the most frequent keys in the input VMap.
Parameters¶
Name | Type | Optional | Description |
---|---|---|---|
expr | str / vDataFrame | ❌ | Input expression. You can also specify a vDataFrame or a customized relation, but you must enclose it with an alias. For example, "(SELECT 1) x" is allowed, whereas "(SELECT 1)" and "SELECT 1" are not. |
vmap_col | str | ✓ | VMap column. |
limit | int | ✓ | Maximum number of keys to consider. |
Returns¶
List of tuples : List of virtual column names and their respective frequencies.
Example¶
In [2]:
from verticapy.utilities import read_json, compute_vmap_keys
read_json("laliga/*.json", table_name = "laliga", materialize = False)
compute_vmap_keys(expr = "v_temp_schema.laliga", vmap_col = "__raw__",)
Out[2]: