3 ms·
> Accessing a single column of a DataFrame as a Series (e.g. df["col"]) now always returns a new object every time it is constructed when Copy-on-Write is enabl
by fauxpause_ 4y ago
> Accessing a single column of a DataFrame as a Series (e.g. df["col"]) now always returns a new object every time it is constructed when Copy-on-Write is enabled (not returning multiple times an identical, cached Series object). This ensures that those Series objects correctly follow the Copy-on-Write rules (GH49450)
Is this going to mean I can’t do df[‘a’] = 2 to set all values in column a to 2?
- miohtama 4y agoCopy-on-write is not enabled by default, but needs to be explicitly enabled with an option or a context manager.
- fauxpause_ 4y agoBut if it were enabled, am I correct