Backport PR #29393 on branch 1.0.x (BUG: GH25495 incorrect dtype when using .loc to set Categorical value for column in 1-row DataFrame)
Backport PR #29393: BUG: GH25495 incorrect dtype when using .loc to set Categorical value for column in 1-row DataFrame