Shortcuts

torcharrow.DataFrame.isin

DataFrame.isin(values: Union[list, dict, Column])

Check whether each element in the dataframe is contained in values.

Parameters:
  • array-like (values -) – Which values to check the presence of.

  • dict (column or) – Which values to check the presence of.

Return type:

DataFrame of booleans showing whether each element is contained in values.

Examples

>>> import torcharrow as ta
>>> df = ta.dataframe({"a": [1, 2, 3],
                      "b": [4, 5, 6]
                      })
>>> df.isin([1, 2, 5])
  index  a      b
-------  -----  -----
    0  True   False
    1  True   True
    2  False  False
dtype: Struct([Field('a', boolean), Field('b', boolean)]), count: 3, null_count: 0

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources