deepgraph.DeepGraph.filter_by_values_e
- DeepGraph.filter_by_values_e(col, values)[source]
Keep only edges in
ewith relations of typecolinvalues.Remove all edges from
ewith relation(s) of typecolnot in the list of relations given byvalues.- Parameters:
col (str or int) – A column name of
e, indicating the type of relation used in the filtering.values (object or array_like) – The value(s) indicating which edges to keep.
- Returns:
e – update
e- Return type:
pd.DataFrame