Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在此处重现 Python Pint 库中描述的示例。
在运行以下行时,在“从 csv 读取”部分中:
df_ = df.pint.quantify(level=-1)
我收到以下消息错误:
AttributeError:“DataFrame”对象没有属性“品脱”
有没有人解决这个问题?
提前致谢!
此致。
正如@Ivan 在评论中指出的那样,您需要安装pint-pandas包:
pint-pandas
pip install git+https://github.com/hgrecco/pint-pandas.git
Pandas 对此有一个未解决的问题。