提问人:Idobuv 提问时间:10/7/2023 最后编辑:BarmarIdobuv 更新时间:10/7/2023 访问量:25
我使用 pandas 在 csv 文件上,我遇到此错误,我该怎么办?
Im on a csv file using pandas and i have this error what do i do?
问:
我在 CSV 文件上,我使用 pandas,我不知道我的代码有什么问题
df.describe([maximum]['Price(USD)'])
<>:1: SyntaxWarning: list indices must be integers or slices, not str; perhaps you missed a comma?
<>:1: SyntaxWarning: list indices must be integers or slices, not str; perhaps you missed a comma?
<ipython-input-70-6f9ec0183b49>:1: SyntaxWarning: list indices must be integers or slices, not str; perhaps you missed a comma?
df.describe([maximum]['Price(USD)'])
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-70-6f9ec0183b49> in <cell line: 1>()
----> 1 df.describe([maximum]['Price(USD)'])
TypeError: list indices must be integers or slices, not str
答: 暂无答案
评论
maximum
maximum['Price(USD)']
[]
maximum
maximum()['Price(USD)']