@@ -127,17 +127,19 @@ def to_property_graph(
127
127
"""Write records stored in a DataFrame into Amazon Neptune.
128
128
129
129
If writing to a property graph then DataFrames for vertices and edges must be written separately.
130
+
130
131
DataFrames for vertices must have a ~label column with the label and a ~id column for the vertex id.
131
- If the ~id column does not exist, the specified id does not exists , or is empty then a new vertex will be added.
132
- If no ~label column exists an exception will be thrown.
132
+ If the ~id column does not exist, the specified id does not exist , or is empty then a new vertex will be added.
133
+
133
134
DataFrames for edges must have a ~id, ~label, ~to, and ~from column. If the ~id column does not exist
134
- the specified id does not exists, or is empty then a new edge will be added. If no ~label, ~to, or ~from column
135
- exists an exception will be thrown.
135
+ the specified id does not exist, or is empty then a new edge will be added.
136
+
137
+ Existing ~id values will be overwritten. If no ~id, ~label, ~to, or ~from column exists,
138
+ an InvalidArgumentValue exception will be thrown.
136
139
137
140
If you would like to save data using `single` cardinality then you can postfix (single) to the column header and
138
141
set use_header_cardinality=True (default). e.g. A column named `name(single)` will save the `name` property
139
- as single
140
- cardinality. You can disable this by setting by setting `use_header_cardinality=False`.
142
+ as single cardinality. You can disable this by setting by setting `use_header_cardinality=False`.
141
143
142
144
Parameters
143
145
----------
0 commit comments