File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ behaves as a copy.
14
14
Reference tracking
15
15
------------------
16
16
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
19
19
keeps track of all ``Blocks `` that share values with another block internally to
20
20
be able to tell when a copy needs to be triggered. The reference tracking
21
21
mechanism is implemented on the Block level.
22
22
23
23
We use a custom reference tracker object, ``BlockValuesRefs ``, that keeps
24
24
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
26
26
point to the same ``BlockValuesRefs `` object. If one block goes out of
27
27
scope, the reference to this block dies. As a consequence, the reference tracker
28
28
object always knows how many blocks are alive and share memory.
You can’t perform that action at this time.
0 commit comments