Pretty sure is because of version mismatching. If you use numpy 1.x, downgrade pandas to 1.x; if you use numpy 2.0, using pan