mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-22 00:52:18 +01:00
23 lines
921 B
Diff
23 lines
921 B
Diff
From e41a1fddec672f7627415bf38f420b78565cee2a Mon Sep 17 00:00:00 2001
|
|
From: Ross Barnowski <rossbar@berkeley.edu>
|
|
Date: Sun, 30 Aug 2020 15:39:19 -0700
|
|
Subject: [PATCH] TST: add dtype to pandas test
|
|
|
|
---
|
|
networkx/tests/test_convert_pandas.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/networkx/tests/test_convert_pandas.py b/networkx/tests/test_convert_pandas.py
|
|
index b06b96b061..22a5e2c271 100644
|
|
--- a/networkx/tests/test_convert_pandas.py
|
|
+++ b/networkx/tests/test_convert_pandas.py
|
|
@@ -229,7 +229,7 @@ def test_from_adjacency_named(self):
|
|
"B": {"A": 1, "B": 0, "C": 0},
|
|
"C": {"A": 0, "B": 1, "C": 0},
|
|
}
|
|
- dftrue = pd.DataFrame(data)
|
|
+ dftrue = pd.DataFrame(data, dtype=np.intp)
|
|
df = dftrue[["A", "C", "B"]]
|
|
G = nx.from_pandas_adjacency(df, create_using=nx.DiGraph())
|
|
df = nx.to_pandas_adjacency(G, dtype=np.intp)
|