BUG: fix AttributeError raised in libreduction (#29100)
BUG: fix AttributeError raised in libreduction (#29100)


gfyoung/pandas,jorisvandenbossche/pandas,rs2/pandas,dsm054/pandas,rs2/pandas,pandas-dev/pandas,jreback/pandas,TomAugspurger/pandas,TomAugspurger/pandas,jreback/pandas,rs2/pandas,TomAugspurger/pandas,datapythonista/pandas,datapythonista/pandas,pandas-dev/pandas,gfyoung/pandas,pandas-dev/pandas,datapythonista/pandas,dsm054/pandas,jorisvandenbossche/pandas,datapythonista/pandas,rs2/pandas,jorisvandenbossche/pandas,gfyoung/pandas,dsm054/pandas,gfyoung/pandas,TomAugspurger/pandas,gfyoung/pandas,jreback/pandas,dsm054/pandas,jreback/pandas,pandas-dev/pandas,jorisvandenbossche/pandas,dsm054/pandas,jreback/pandas