我正在尝试复制Python库这里中描述的示例。
在“读取csv”一节中,运行以下行:
df_ = df.pint.quantify(level=-1)我收到以下消息错误:
AttributeError:'DataFrame‘对象没有属性’品脱‘
有谁能解决这个问题吗?
提前感谢!
诚挚的问候。
发布于 2020-01-28 12:54:02
正如@Ivan在注释中所指出的,您需要安装pint-pandas包:
pip install git+https://github.com/hgrecco/pint-pandas.git
关于这个问题的熊猫有个未知数。
https://stackoverflow.com/questions/59932796
复制相似问题