Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6ce3306
API / CoW: DataFrame(<dict of Series>, copy=False) constructor now gi…
jorisvandenbossche Jan 16, 2023
104cab9
expand test
jorisvandenbossche Jan 16, 2023
e192a63
try fix mypy
jorisvandenbossche Jan 16, 2023
0b4f337
Merge remote-tracking branch 'upstream/main' into cow-dataframe-const…
jorisvandenbossche Jan 17, 2023
a300b08
clean-up usage of internals in reshape/concat.py
jorisvandenbossche Jan 17, 2023
df21ca2
further fix mypy
jorisvandenbossche Jan 17, 2023
bc5d77a
Merge remote-tracking branch 'upstream/main' into cow-dataframe-const…
jorisvandenbossche Jan 20, 2023
e7d2f0f
expand tests
jorisvandenbossche Jan 20, 2023
27e8549
fix reindex case
jorisvandenbossche Jan 20, 2023
a05c066
Merge remote-tracking branch 'upstream/main' into cow-dataframe-const…
jorisvandenbossche Jan 23, 2023
10238ba
clean-up
jorisvandenbossche Jan 23, 2023
6d860bc
add whatsnew
jorisvandenbossche Jan 23, 2023
5bb6ab0
Merge remote-tracking branch 'upstream/main' into cow-dataframe-const…
jorisvandenbossche Jan 30, 2023
b24ea5f
add xfailed test for int64->Int64
jorisvandenbossche Jan 30, 2023
941676b
Merge remote-tracking branch 'upstream/main' into cow-dataframe-const…
jorisvandenbossche Feb 10, 2023
6e32a34
refactor
jorisvandenbossche Feb 10, 2023
82bc4bb
cleanup
jorisvandenbossche Feb 10, 2023
7fc8594
fix for AM
jorisvandenbossche Feb 10, 2023
9d11606
Merge remote-tracking branch 'upstream/main' into cow-dataframe-const…
jorisvandenbossche Feb 10, 2023
3d2d5e6
fix + address feedback
jorisvandenbossche Feb 10, 2023
48a00a1
fixup typing
jorisvandenbossche Feb 10, 2023
9a2f97c
Merge remote-tracking branch 'upstream/main' into cow-dataframe-const…
jorisvandenbossche Feb 10, 2023
5476780
try fix typing
jorisvandenbossche Feb 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/main' into cow-dataframe-const…
…ructor-from-series
  • Loading branch information
jorisvandenbossche committed Jan 30, 2023
commit 5bb6ab0f6a6bdaf602d392528c6fb03925341558
10 changes: 9 additions & 1 deletion doc/source/whatsnew/v2.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,17 @@ Copy-on-Write improvements
Series with the default of ``copy=False`` (:issue:`50471`)

- The :class:`DataFrame` constructor, when constructing a DataFrame from a dictionary
of Series objects and specifying ``copy=False``, will now use_inf_as_null a lazy copy
of Series objects and specifying ``copy=False``, will now use a lazy copy
of those Series objects for the columns of the DataFrame (:issue:`50777`)

- Trying to set values using chained assignment (for example, ``df["a"][1:3] = 0``)
will now always raise an exception when Copy-on-Write is enabled. In this mode,
chained assignment can never work because we are always setting into a temporary
object that is the result of an indexing operation (getitem), which under
Copy-on-Write always behaves as a copy. Thus, assigning through a chain
can never update the original Series or DataFrame. Therefore, an informative
error is raised to the user instead of silently doing nothing (:issue:`49467`)

Copy-on-Write can be enabled through

.. code-block:: python
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.