熊猫打印CSV文件的问题

时间:2020-05-06 00:08:58

标签: python pandas

import pandas as pd
spy = pd.read_csv("spydatacsv.csv", header=0)
print(spy.head())

错误:

Traceback (most recent call last):
  File "/Users/christianwooldridge/PycharmProjects/1/pandas.py", line 1, in <module>
    import pandas as pd
  File "/Users/christianwooldridge/PycharmProjects/1/pandas.py", line 2, in <module>
    spy = pd.read_csv("spydatacsv.csv", header=0)
AttributeError: partially initialized module 'pandas' has no attribute 'read_csv' (most likely due to a circular import)

0 个答案:

没有答案