Skip to content

Commit a49f28d

Browse files
committed
Improve standalone notebook
1 parent f862260 commit a49f28d

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

examples/graph-analytics-serverless-standalone.ipynb

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"source": [
2929
"This Jupyter notebook is hosted [here](https://github.com/neo4j/graph-data-science-client/blob/main/examples/graph-analytics-serverless-standalone.ipynb) in the Neo4j Graph Data Science Client Github repository.\n",
3030
"\n",
31-
"The notebook shows how to use the `graphdatascience` Python library to create, manage, and use a GDS Session.\n",
31+
"The notebook shows how to use the `graphdatascience` Python library to create, manage, and use an Aura Graph Analytics (AGA) Session.\n",
3232
"\n",
33-
"We consider a graph of people and fruits, which we're using as a simple example to show how to load data from Pandas `DataFrame` to a GDS Session, run algorithms, and inspect the results. \n",
33+
"We consider a graph of people and fruits, which we're using as a simple example to show how to load data from Pandas `DataFrame` to an AGA Session, run algorithms, and inspect the results.\n",
3434
"We will cover all management operations: creation, listing, and deletion.\n",
3535
"\n",
3636
"If you are using AuraDB, follow [this example](../graph-analytics-serverless).\n",
@@ -194,12 +194,14 @@
194194
"cell_type": "markdown",
195195
"metadata": {},
196196
"source": [
197-
"## Adding a dataset\n",
197+
"## Projecting a dataset\n",
198198
"\n",
199-
"We assume that the configured Neo4j database instance is empty.\n",
200-
"We will add our dataset using standard Cypher.\n",
199+
"AGA sessions always start empty, with no data.\n",
200+
"So our first step will be to project data into the session.\n",
201+
"In this example, we will illustrate how to do this using Pandas DataFrames.\n",
201202
"\n",
202-
"In a more realistic scenario, this step is already done, and we would just connect to the existing database."
203+
"Many systems offer ways to read data into Pandas DataFrames, enabling these systems to be used as data sources for AGA.\n",
204+
"For simplicity, we will define the DataFrames used in this notebook by hand."
203205
]
204206
},
205207
{
@@ -249,8 +251,11 @@
249251
"source": [
250252
"## Construct Graph from DataFrames\n",
251253
"\n",
252-
"Now that we have imported a graph to our database, we create graphs directly from pandas `DataFrame` objects.\n",
253-
"We do that by using the `gds.graph.construct()` method."
254+
"With DataFrames in hand, the next step is to build a graph from them.\n",
255+
"We do that by using the `gds.graph.construct()` function.\n",
256+
"\n",
257+
"After calling this function, we will get a Graph Object back, representing the graph that now exists within the AGA session.\n",
258+
"We will use it as input to the various algorithms that we will run on the graph."
254259
]
255260
},
256261
{

0 commit comments

Comments
 (0)