diff --git a/python/pagerank/pagerank_wrapper.pyx b/python/pagerank/pagerank_wrapper.pyx index 11ca64a4aaa..7aefa127827 100644 --- a/python/pagerank/pagerank_wrapper.pyx +++ b/python/pagerank/pagerank_wrapper.pyx @@ -191,7 +191,7 @@ cpdef pagerank(G,alpha=0.85, max_iter=100, tol=1.0e-5): cdef gdf_graph* g = graph size = g.transposedAdjList.offsets.size - pagerank = cudf.Series(np.zeros(g.transposedAdjList.offsets.size,dtype=np.float64)) + pagerank = cudf.Series(np.zeros(g.transposedAdjList.offsets.size-1,dtype=np.float64)) cdef uintptr_t pagerank_ptr = create_column(pagerank) gdf_pagerank(graph, pagerank_ptr, alpha, tol, max_iter, 0)