BUG: DataFrame constructor with copy=False and missing columns creates columns that are views of each other #45369
Labels
Bug
Constructors
Series/DataFrame/Index/pd.array Constructors
DataFrame
DataFrame data structure
Regression
Functionality that used to work in a prior pandas version
Milestone
See #44889 (comment)
With
copy=False
and constructing a DataFrame with missing columns in the passed data, the columns get constructed as identical arrays, so mutating one also incorrectly mutates the other columns:The text was updated successfully, but these errors were encountered: