Skip to content

Commit 4f11580

Browse files
authored
DOC: Cleanup CoW dev docs (#51552)
1 parent 1b5370a commit 4f11580

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/source/development/copy_on_write.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ behaves as a copy.
1414
Reference tracking
1515
------------------
1616

17-
To be able to determine, if we have to make a copy when writing into a DataFrame,
18-
we have to be aware, if the values are shared with another DataFrame. pandas
17+
To be able to determine if we have to make a copy when writing into a DataFrame,
18+
we have to be aware if the values are shared with another DataFrame. pandas
1919
keeps track of all ``Blocks`` that share values with another block internally to
2020
be able to tell when a copy needs to be triggered. The reference tracking
2121
mechanism is implemented on the Block level.
2222

2323
We use a custom reference tracker object, ``BlockValuesRefs``, that keeps
2424
track of every block, whose values share memory with each other. The reference
25-
is held through a weak-reference. Every two blocks that share some memory should
25+
is held through a weak-reference. Every pair of blocks that share some memory should
2626
point to the same ``BlockValuesRefs`` object. If one block goes out of
2727
scope, the reference to this block dies. As a consequence, the reference tracker
2828
object always knows how many blocks are alive and share memory.

0 commit comments

Comments
 (0)