Skip to content

Commit 5bd7f68

Browse files
committed
Filter out internal pandas deprecation warning
1 parent 08f7b27 commit 5bd7f68

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

graphdatascience/graph/graph_entity_ops_runner.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from functools import reduce
22
from typing import Any, Dict, List, Type, Union
3+
from warnings import filterwarnings
34

45
import pandas as pd
56
from pandas import DataFrame, Series
@@ -26,6 +27,13 @@ def _constructor(self) -> "Type[TopologyDataFrame]":
2627
return TopologyDataFrame
2728

2829
def by_rel_type(self) -> Dict[str, List[List[int]]]:
30+
# Pandas 2.2.0 deprecated an internal API used by DF.take(indices)
31+
filterwarnings(
32+
"ignore",
33+
category=DeprecationWarning,
34+
message=r"Passing a BlockManager to TopologyDataFrame is deprecated",
35+
)
36+
2937
gb = self.groupby("relationshipType", observed=True)
3038

3139
output = {}

0 commit comments

Comments
 (0)