You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there. I've been using django-neomodel for a long time and am starting to get into Pandas/GraphFrames and Pandas/Scikit. How can I serialize my nodeset into a generic data type like a python dictionary or JSON?
I know I could just grab the data with Cypher or a JSONresponse API call, but that kind of defeats the purpose of the library.
I've attempted all sorts of conversions and iterations: json and dict and dataframe attempts.
How to unlazily load values?
a = MyModel.nodes.all()[0].defined_properties().copy
pd.DataFrame.from_dict([a()])
Trying to iterate over a node in every row of a df I just keep winding up back at the django-neomodel class.
list_bucket = []
all_rows = raw_df.iloc[:,0]
for r in all_rows:
row_as_series = pd.Series(r)
list_bucket.append(row_as_series)
type(list_bucket[0][0])
[2] my_app.my_models.MyModel
Perhaps I could somehow super() into the parent class neomodel nodeset.__properties__ ?
MyModel.__class__
[3] neomodel.core.NodeMeta
The text was updated successfully, but these errors were encountered:
Hey there. I've been using django-neomodel for a long time and am starting to get into Pandas/GraphFrames and Pandas/Scikit. How can I serialize my nodeset into a generic data type like a python dictionary or JSON?
I know I could just grab the data with Cypher or a JSONresponse API call, but that kind of defeats the purpose of the library.
I've attempted all sorts of conversions and iterations: json and dict and dataframe attempts.
How to unlazily load values?
Trying to iterate over a node in every row of a df I just keep winding up back at the django-neomodel class.
Perhaps I could somehow
super()
into the parent class neomodelnodeset.__properties__
?The text was updated successfully, but these errors were encountered: