From c756fc9992f9bb8eeb3474543b9778d6f5cef3a0 Mon Sep 17 00:00:00 2001 From: Adam Schill Collberg Date: Fri, 16 May 2025 16:20:24 +0200 Subject: [PATCH 1/3] Consider all field aliases in convenience constructors --- examples/snowpark-example.ipynb | 25 ++++++++++---------- python-wrapper/src/neo4j_viz/gql_create.py | 9 ++----- python-wrapper/src/neo4j_viz/neo4j.py | 24 ++++++++++++++----- python-wrapper/src/neo4j_viz/node.py | 9 +++++++ python-wrapper/src/neo4j_viz/pandas.py | 7 ++++-- python-wrapper/src/neo4j_viz/relationship.py | 11 +++++++++ 6 files changed, 58 insertions(+), 27 deletions(-) diff --git a/examples/snowpark-example.ipynb b/examples/snowpark-example.ipynb index a1ac48b4..647cbfc5 100644 --- a/examples/snowpark-example.ipynb +++ b/examples/snowpark-example.ipynb @@ -171,7 +171,7 @@ "## Fetching the data\n", "\n", "Next we fetch our tables from Snowflake and convert them to pandas DataFrames.\n", - "Additionally, we rename some of the table columns so that they are named according to the `neo4j-viz` API." + "Additionally, we rename the most of the table columns so that they are named according to the `neo4j-viz` API." ] }, { @@ -182,7 +182,8 @@ "outputs": [], "source": [ "products_df = session.table(\"products\").to_pandas().rename(columns={\"NAME\": \"caption\"})\n", - "parents_df = session.table(\"parents\").to_pandas().rename(columns={\"TYPE\": \"caption\"})" + "parents_df = session.table(\"parents\").to_pandas().rename(columns={\"TYPE\": \"caption\"})\n", + "products_df" ] }, { @@ -288,27 +289,27 @@ "}\n", "\n", " \n", - "
\n", + "
\n", "
\n", - " \n", - " \n", - " \n", "
\n", - "
\n", + "
\n", "
\n", "\n", "