Skip to content

Commit da125b9

Browse files
fix: Errors in neptune docstrings
1 parent 7de0336 commit da125b9

File tree

1 file changed

+23
-17
lines changed

1 file changed

+23
-17
lines changed

awswrangler/neptune/_neptune.py

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,16 @@ def to_property_graph(
138138
an InvalidArgumentValue exception will be thrown.
139139
140140
If you would like to save data using `single` cardinality then you can postfix (single) to the column header and
141-
set use_header_cardinality=True (default). e.g. A column named `name(single)` will save the `name` property
142-
as single cardinality. You can disable this by setting by setting `use_header_cardinality=False`.
141+
set ``use_header_cardinality=True`` (default).
142+
e.g. A column named `name(single)` will save the `name` property as single cardinality.
143+
You can disable this by setting ``use_header_cardinality=False``.
143144
144145
Parameters
145146
----------
146147
client: NeptuneClient
147148
instance of the neptune client to use
148149
df: pandas.DataFrame
149-
Pandas DataFrame https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html
150+
`Pandas DataFrame <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html>`_
150151
batch_size: int
151152
The number of rows to save at a time. Default 50
152153
use_header_cardinality: bool
@@ -218,20 +219,25 @@ def to_rdf_graph(
218219
219220
Parameters
220221
----------
221-
client (NeptuneClient) :
222-
instance of the neptune client to use
223-
df (pandas.DataFrame) :
224-
Pandas DataFrame https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html
225-
batch_size (int) :
226-
The number of rows in the DataFrame (i.e. triples) to write into Amazon Neptune in one query. Defaults to 50
227-
subject_column (str, optional) :
228-
The column name in the DataFrame for the subject. Defaults to 's'
229-
predicate_column (str, optional) :
230-
The column name in the DataFrame for the predicate. Defaults to 'p'
231-
object_column (str, optional) :
232-
The column name in the DataFrame for the object. Defaults to 'o'
233-
graph_column (str, optional) :
234-
The column name in the DataFrame for the graph if sending across quads. Defaults to 'g'
222+
client: NeptuneClient
223+
Instance of the neptune client to use.
224+
df: pandas.DataFrame
225+
`Pandas DataFrame <https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html>`_.
226+
batch_size: int
227+
The number of rows in the DataFrame (i.e. triples) to write into Amazon Neptune in one query.
228+
Defaults to 50.
229+
subject_column: str, optional
230+
The column name in the DataFrame for the subject.
231+
Defaults to 's'.
232+
predicate_column: str, optional
233+
The column name in the DataFrame for the predicate.
234+
Defaults to 'p'.
235+
object_column: str, optional
236+
The column name in the DataFrame for the object.
237+
Defaults to 'o'.
238+
graph_column: str, optional
239+
The column name in the DataFrame for the graph if sending across quads.
240+
Defaults to 'g'.
235241
236242
Returns
237243
-------

0 commit comments

Comments
 (0)