forked from pandas-dev/pandas
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca1cd7b
commit a4a2f7a
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# BUG: DataFrame.loc is not consistent with DataFrame.__setitem__ when used with 2D numpy array #46544 | ||
|
||
import numpy as np | ||
import pandas as pd | ||
|
||
print(pd.__version__) | ||
|
||
df = pd.DataFrame(np.zeros((256, 10))) | ||
array_2d = np.zeros((256, 2)) | ||
|
||
df[0] = array_2d | ||
df.loc[:, 0] = array_2d |