Conversation
| if dropna: | ||
| row.dropna(inplace=True) |
There was a problem hiding this comment.
NIT could move the dropna logic into the k,v loop below (line 83).
There was a problem hiding this comment.
Not sure I understand :) You mean we check each value if it's NaN? If so this feels a bit cleaner I think
There was a problem hiding this comment.
yes :)
with this you mean the row.dropna?
There was a problem hiding this comment.
Yes, I think only making one call to row.dropna feels nicer than checking every value of the row
FlorentinD
left a comment
There was a problem hiding this comment.
Great improvement :)
We could also allow node_dfs to have the shape of dict[str, DataFrame].
This might make the drop_na option not as relevant? (gds could pass a df per label)
I don't think that matters, since GDS can already pass a list of dataframes, one for each label. We could also remove |
53ec414 to
44f59c1
Compare
Thank you for your contribution to the Graph Visualization for Python project by Neo4j.
Before submitting this PR, please read Contributing to the Neo4j Ecosystem.
Make sure:
Based on #189