Skip to content

Commit

Permalink
minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
BradReesWork committed Sep 14, 2021
1 parent 2fd323c commit f35d737
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/cugraph/cugraph/structure/graph_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

pd = import_optional("pandas")


# TODO: Move to utilities
def null_check(col):
if col.null_count != 0:
Expand Down Expand Up @@ -299,7 +300,7 @@ def from_pandas_edgelist(
"""
if pd is None:
raise RuntimeError("Pandas could not be imported, "
"cannot convert from pandas")
"cannot convert from pandas")

if not isinstance(pdf, pd.core.frame.DataFrame):
raise Exception("pdf input is not a Pandas DataFrame")
Expand All @@ -319,7 +320,7 @@ def from_pandas_adjacency(self, pdf):
"""
if pd is None:
raise RuntimeError("Pandas could not be imported, "
"cannot convert from pandas")
"cannot convert from pandas")

if not isinstance(pdf, pd.core.frame.DataFrame):
raise TypeError("pdf input is not a Pandas DataFrame")
Expand Down

0 comments on commit f35d737

Please sign in to comment.