AttributeError: ‘TransposedFont’ object has no attribute ‘getbbox’
运行如下代码:
#if you get attribute error while generating worldcloud, upgrade Pillow and numpy using below code
%pip install --upgrade pillow
%pip install --upgrade numpy
如果用的是Jupyter Notebook,记得restart the kernel to use updated packages。