VHRanger / CSRGraph

A tiny library for large graphs
MIT License
111 stars 17 forks source link

Don't allow NaNs #9

Closed eloaf closed 3 years ago

eloaf commented 3 years ago

Interpreting any value as null will cause a crash if trying to load from CSV. Actually any null values after loading the CSV should be raised. Suggested:

elist = pd.read_csv(...)
if elist.isnull().any().any():
    raise ValueError("Some message")