-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
API: honor copy=True when passing dict to DataFrame #38939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
jreback
merged 69 commits into
pandas-dev:master
from
jbrockmendel:myway-init-no-consolidate
Mar 31, 2021
Merged
Changes from 22 commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
cbc97f0
ENH: allow non-consolidation in constructors
jbrockmendel a135d96
Merge branch 'master' of https://github.com/pandas-dev/pandas into my…
jbrockmendel 5c94129
mypy fixup
jbrockmendel d653c54
ENH: allow non-consolidation in constructors
jbrockmendel e71e319
Merge branch 'myway-init-no-consolidate' of github.com:jbrockmendel/p…
jbrockmendel cafa718
Merge branch 'master' of https://github.com/pandas-dev/pandas into my…
jbrockmendel c706ad6
Merge branch 'master' of https://github.com/pandas-dev/pandas into my…
jbrockmendel 3f9195e
Merge branch 'master' of https://github.com/pandas-dev/pandas into my…
jbrockmendel 1cba671
Merge branch 'master' of https://github.com/pandas-dev/pandas into my…
jbrockmendel 396daba
BUG: respect copy=False in constructing DataFrame from dict
jbrockmendel 11ae1c9
whatsnew
jbrockmendel b505267
clean test
jbrockmendel a1e9b68
Merge branch 'master' of https://github.com/pandas-dev/pandas into my…
jbrockmendel b70d997
fixed xfail
jbrockmendel 09213e0
update whatsnew
jbrockmendel e895de0
Merge branch 'master' of https://github.com/pandas-dev/pandas into my…
jbrockmendel 31bda58
de-kludge
jbrockmendel 37a2c0c
remove no-longer-used msg
jbrockmendel b93d7d5
Merge branch 'master' of https://github.com/pandas-dev/pandas into my…
jbrockmendel aa667a6
Merge branch 'master' of https://github.com/pandas-dev/pandas into my…
jbrockmendel 185cd99
fix broken test
jbrockmendel 701356f
Consolidate in tm, update whatsnew
jbrockmendel 948ac67
Merge branch 'master' of https://github.com/pandas-dev/pandas into my…
jbrockmendel 46f2fcf
always copy when data is None
jbrockmendel 0bbfec0
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel 590c820
update exception message
jbrockmendel 17a693c
Merge branch 'master' of https://github.com/pandas-dev/pandas into my…
jbrockmendel fb8f32d
update exception message
jbrockmendel 7835184
typo fixup
jbrockmendel 2136289
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel 187499c
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel 6f30beb
Merge branch 'master' of https://github.com/pandas-dev/pandas into my…
jbrockmendel e80d57c
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel b0a6abd
CI: fix broken asv
jbrockmendel bf942ae
revert
jbrockmendel 95e30a5
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel 510f697
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel 48e359e
Default to copy=True for dict data
jbrockmendel 048e826
troubleshoot docbuild
jbrockmendel 6a9c9f0
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel a17c728
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel 5b3d419
update whatsnew
jbrockmendel f961378
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel fcee44b
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel 0c60ae8
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel 1468e59
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel b6d8b70
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel 8b66b11
skip for ArrayManager
jbrockmendel 54cacfc
Update doc/source/whatsnew/v1.3.0.rst
jbrockmendel 5ea7a75
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel e11ea68
requested edits
jbrockmendel 65d01c7
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel 41c4e7a
test test_df_mod_zero_df with and without copy
jbrockmendel 7260a72
collect copy-adjusting code in one place
jbrockmendel 52344bb
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel 3ddc3d3
update docstring
jbrockmendel e6bae0f
whatsnew, comment
jbrockmendel 7cab084
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel e8e3d84
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel 5c44953
mypy fixup
jbrockmendel e32f630
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel abd890a
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel 1b7f7ca
Update pandas/core/frame.py
jbrockmendel b326b5f
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel b7aed5d
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel 4d20fe7
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel ad5485a
add versionchanged
jbrockmendel 6bed6ac
Merge branch 'master' into myway-init-no-consolidate
jbrockmendel 98b6dff
update bc .values has changed to DTA/TDA
jbrockmendel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -473,12 +473,12 @@ def getPeriodData(nper=None): | |
# make frame | ||
def makeTimeDataFrame(nper=None, freq="B"): | ||
data = getTimeSeriesData(nper, freq) | ||
return DataFrame(data) | ||
return DataFrame(data)._consolidate() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change should in theory no longer be needed? (assuming this was done to ensure consolidated dataframe when the default was changed to not copy, and thus result in non-consolidated dataframe) (and same for the 2 cases just below) |
||
|
||
|
||
def makeDataFrame() -> DataFrame: | ||
data = getSeriesData() | ||
return DataFrame(data) | ||
return DataFrame(data)._consolidate() | ||
|
||
|
||
def getMixedTypeDict(): | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.