deepgraph.deepgraph.DeepGraph.filter_by_values_e¶
-
DeepGraph.
filter_by_values_e
(col, values)[source]¶ Keep only edges in
e
with relations of typecol
invalues
.Remove all edges from
e
with relation(s) of typecol
not 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
- col (str or int) – A column name of