Backport PR #29896: Change .T to .transpose() in _reshape_2D
#785
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention