Skip to content
Prev Previous commit
Next Next commit
fix comment error
  • Loading branch information
akkik04 committed Nov 24, 2025
commit aa707b1ce3d8d7201883134125afd4b605748504
2 changes: 1 addition & 1 deletion pandas/core/construction.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def sanitize_array(
# allow assigning a (n, 1) object array to a single column.
data = data[:, 0]
elif data.ndim == 2:
# more than 1 column, now allowed.
# more than 1 column, not allowed.
raise ValueError(
"Setting a DataFrame column with a 2D object array "
f"requires shape (n, 1); got shape {data.shape}."
Expand Down
Loading