Skip to content

Commit c72385e

Browse files
committed
fix
1 parent 783d048 commit c72385e

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/source/how_to_guides/writing_custom_nodes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ your own to improve your workflows.
1111

1212
## Use-case
1313

14-
A typical task operation is to load data like a [pandas.DataFrame][]
14+
A typical task operation is to load data like a [`pandas.DataFrame`][]
1515
from a pickle file, transform it, and store it on disk. The usual way would be to use
1616
paths to point to inputs and outputs and call [`pandas.read_pickle`](https://pandas.pydata.org/docs/reference/api/pandas.read_pickle.html) and
1717
[`pandas.DataFrame.to_pickle`](https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_pickle.html).
@@ -115,7 +115,7 @@ Here are some explanations.
115115
## Improvements
116116

117117
Usually, you would like your custom node to work with [`pathlib.Path`][] objects and
118-
[upath.UPath][] objects allowing to work with remote
118+
[`upath.UPath`][] objects allowing to work with remote
119119
filesystems. To simplify getting the state of the node, you can use the
120120
[`pytask.get_state_of_path`](../reference_guides/api/utilities_and_typing.md#pytask.get_state_of_path)
121121
function.

docs/source/tutorials/using_a_data_catalog.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The following tabs show you how to use the data catalog given the interface you
8888

8989
Use `data_catalog["data"]` as an default argument to access the
9090
[`pytask.PickleNode`](../reference_guides/api/nodes_and_tasks.md#pytask.PickleNode) within the task. When
91-
you are done transforming your [pandas.DataFrame][], save it with
91+
you are done transforming your [`pandas.DataFrame`][], save it with
9292
[`pytask.PNode.save`](../reference_guides/api/nodes_and_tasks.md#pytask.PNode.save).
9393

9494
```py hl_lines="11 22" title="task_data_preparation.py"
@@ -99,7 +99,7 @@ The following tabs show you how to use the data catalog given the interface you
9999

100100
Use `data_catalog["data"]` as an default argument to access the
101101
[`pytask.PickleNode`](../reference_guides/api/nodes_and_tasks.md#pytask.PickleNode) within the task. When
102-
you are done transforming your [pandas.DataFrame][], save it with
102+
you are done transforming your [`pandas.DataFrame`][], save it with
103103
[`pytask.PNode.save`](../reference_guides/api/nodes_and_tasks.md#pytask.PNode.save).
104104

105105
```py hl_lines="7 17" title="task_data_preparation.py"
@@ -110,7 +110,7 @@ The following tabs show you how to use the data catalog given the interface you
110110

111111
An elegant way to use the data catalog is via return type annotations. Add
112112
`data_catalog["data"]` to the annotated return and simply return the
113-
[pandas.DataFrame][]
113+
[`pandas.DataFrame`][]
114114
to store it.
115115

116116
You can read more about return type annotations in
@@ -124,7 +124,7 @@ The following tabs show you how to use the data catalog given the interface you
124124

125125
Next, we will define the second task that consumes the data set from the previous task.
126126
Following one of the interfaces gives you immediate access to the
127-
[pandas.DataFrame][] in the task without any additional line to load
127+
[`pandas.DataFrame`][] in the task without any additional line to load
128128
it.
129129

130130
```py hl_lines="13" title="task_plot_data.py"
@@ -223,6 +223,6 @@ WindowsPath('C:\Users\pytask-dev\git\my_project\file.csv')
223223

224224
`data_catalog["data"]` was stored with a
225225
[`pytask.PickleNode`](../reference_guides/api/nodes_and_tasks.md#pytask.PickleNode) and returns the
226-
[pandas.DataFrame][] whereas `data_catalog["csv"]` becomes a
226+
[`pandas.DataFrame`][] whereas `data_catalog["csv"]` becomes a
227227
[`pytask.PathNode`](../reference_guides/api/nodes_and_tasks.md#pytask.PathNode) and
228228
[`pytask.PNode.load`](../reference_guides/api/nodes_and_tasks.md#pytask.PNode.load) returns the path.

0 commit comments

Comments
 (0)