deepgraph.deepgraph.DeepGraph.filter_by_values_v¶
-
DeepGraph.
filter_by_values_v
(col, values)[source]¶ Keep only nodes in
v
with features of typecol
invalues
.Remove all nodes from
v
(and their corresponding edges ine
) with feature(s) of typecol
not in the list of features given byvalues
.Parameters: - col (str or int) – A column name of
v
, indicating the type of feature used in the filtering. - values (object or array_like) – The value(s) indicating which nodes to keep.
Returns: - v (pd.DataFrame) – update
v
- e (pd.DataFrame) – update
e
- col (str or int) – A column name of