Skip to content

Commit aa707b1

Browse files
committed
fix comment error
1 parent 62f7c4b commit aa707b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/construction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ def sanitize_array(
617617
# allow assigning a (n, 1) object array to a single column.
618618
data = data[:, 0]
619619
elif data.ndim == 2:
620-
# more than 1 column, now allowed.
620+
# more than 1 column, not allowed.
621621
raise ValueError(
622622
"Setting a DataFrame column with a 2D object array "
623623
f"requires shape (n, 1); got shape {data.shape}."

0 commit comments

Comments
 (0)