We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
23.02
Docker, Conda, Pip, Source
Called add_vertex_data without specifying type. Called renumber_vertices_by_type. An IndexError was thrown.
add_vertex_data
renumber_vertices_by_type
IndexError
IndexError: string index out of range
pG = MGPropertyGraph() pG.add_edge_data( dask_cudf.from_cudf( cudf.DataFrame( { "src": cupy.array([0, 0, 1, 2, 2, 3], dtype="int32"), "dst": cupy.array([1, 2, 4, 3, 4, 1], dtype="int32"), } ), npartitions=2, ), vertex_col_names=["src", "dst"], ) pG.add_vertex_data( dask_cudf.from_cudf( cudf.DataFrame( { "prop1": [100, 200, 300, 400, 500], "prop2": [5, 4, 3, 2, 1], "id": cupy.array([0, 1, 2, 3, 4], dtype="int32"), } ), npartitions=2, ), vertex_col_name="id" ) pG.renumber_vertices_by_type()
### Relevant log output ```shell /opt/conda/envs/rapids/lib/python3.9/site-packages/cugraph/dask/structure/mg_property_graph.py:1313: in renumber_vertices_by_type df = df.reset_index().sort_values(by=TCN) /opt/conda/envs/rapids/lib/python3.9/contextlib.py:79: in inner return func(*args, **kwds) /opt/conda/envs/rapids/lib/python3.9/site-packages/dask_cudf/core.py:225: in sort_values df = sorting.sort_values( /opt/conda/envs/rapids/lib/python3.9/contextlib.py:79: in inner return func(*args, **kwds) /opt/conda/envs/rapids/lib/python3.9/site-packages/dask_cudf/sorting.py:272: in sort_values divisions = quantile_divisions(df, by, npartitions) /opt/conda/envs/rapids/lib/python3.9/contextlib.py:79: in inner return func(*args, **kwds) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ df = <dask_cudf.DataFrame | 22 tasks | 2 npartitions>, by = ['_TYPE_'], npartitions = 2 @_dask_cudf_nvtx_annotate def quantile_divisions(df, by, npartitions): qn = np.linspace(0.0, 1.0, npartitions + 1).tolist() divisions = _approximate_quantile(df[by], qn).compute() columns = divisions.columns # TODO: Make sure divisions are correct for all dtypes.. if ( len(columns) == 1 and df[columns[0]].dtype != "object" and not is_categorical_dtype(df[columns[0]].dtype) ): dtype = df[columns[0]].dtype divisions = divisions[columns[0]].astype("int64") divisions.iloc[-1] += 1 divisions = sorted( divisions.drop_duplicates().astype(dtype).to_arrow().tolist(), key=lambda x: (x is None, x), ) else: for col in columns: dtype = df[col].dtype if dtype != "object": divisions[col] = divisions[col].astype("int64") divisions[col].iloc[-1] += 1 divisions[col] = divisions[col].astype(dtype) else: divisions[col].iloc[-1] = chr( > ord(divisions[col].iloc[-1][0]) + 1 ) E IndexError: string index out of range /opt/conda/envs/rapids/lib/python3.9/site-packages/dask_cudf/sorting.py:222: IndexError
### Environment details ```shell Standard environment
n/a
The text was updated successfully, but these errors were encountered:
sort_values
Fix PropertyGraph.renumber_*_by_type with only default types
PropertyGraph.renumber_*_by_type
2de2644
Fixes rapidsai#3058
Fix sort_values when column is all empty strings (#12988)
0d1fb96
See test for simple MRE. This fixes rapidsai/cugraph#3058 Authors: - Erik Welch (https://github.com/eriknw) Approvers: - Lawrence Mitchell (https://github.com/wence-) URL: #12988
Fix PropertyGraph.renumber_*_by_type with only default types (#3352)
e1c44b7
Fixes #3058 Authors: - Erik Welch (https://github.com/eriknw) - Alex Barghi (https://github.com/alexbarghi-nv) Approvers: - Alex Barghi (https://github.com/alexbarghi-nv) URL: #3352
eriknw
Successfully merging a pull request may close this issue.
Version
23.02
Which installation method(s) does this occur on?
Docker, Conda, Pip, Source
Describe the bug.
Called
add_vertex_data
without specifying type. Calledrenumber_vertices_by_type
. AnIndexError
was thrown.Minimum reproducible example
Other/Misc.
n/a
Code of Conduct
The text was updated successfully, but these errors were encountered: