pandas-dev / pandas

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
https://pandas.pydata.org
BSD 3-Clause "New" or "Revised" License
43.9k stars 18.03k forks source link

BUG: fix NameError raised when specifying dtype with string having "[pyarrow]" while PyArrow is not installed #60413

Closed yuanx749 closed 1 day ago

yuanx749 commented 4 days ago

I thinks this is more like a bug than enhancement, as quoted from the OP:

This conforms to the description in Installation Guide: If the optional dependency is not installed, pandas will raise an ImportError when the method requiring that dependency is called.

mroeschke commented 1 day ago

Thanks @yuanx749