deepgraph.DeepGraph.filter_by_values_v
- DeepGraph.filter_by_values_v(col, values)[source]
Keep only nodes in
vwith features of typecolinvalues.Remove all nodes from
v(and their corresponding edges ine) with feature(s) of typecolnot 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
ve (pd.DataFrame) – update
e