vDataFrame.isin¶
In [ ]:
vDataFrame.isin(val: dict)
Looks if some specific records are in the vDataFrame and it returns the new vDataFrame of the search.
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
val | dict | ❌ | Dictionary of the different records. Each key of the dictionary must represent a vcolumn. For example, to check if Badr Ouali and Fouad Teban are in the vDataFrame. You can write the following dict: {"name": ["Teban", "Ouali"], "surname": ["Fouad", "Badr"]} |
In [1]:
from verticapy.datasets import load_amazon
amazon = load_amazon()
display(amazon)
In [3]:
amazon.isin({"state": ["RIO DE JANEIRO", "PARÁ"],
"number": [0, 0]})
Out[3]:
