We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62f7c4b commit aa707b1Copy full SHA for aa707b1
pandas/core/construction.py
@@ -617,7 +617,7 @@ def sanitize_array(
617
# allow assigning a (n, 1) object array to a single column.
618
data = data[:, 0]
619
elif data.ndim == 2:
620
- # more than 1 column, now allowed.
+ # more than 1 column, not allowed.
621
raise ValueError(
622
"Setting a DataFrame column with a 2D object array "
623
f"requires shape (n, 1); got shape {data.shape}."
0 commit comments