import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from scipy.io import loadmat
from scipy.stats import norm
ssec_daily = pd.read_scv('1LShowData_SSEC_daily.csv',encoding='GB2312',usecols=[6])
p_daily = ssec_daily['收盘'].values()
plt.plot(p_daily)
plt.show()
显示:
Traceback (most recent call last):
File "C:\Users\86135\PycharmProjects\pythonProject1\pythonProject\20220303-实验1.py", line 8, in <module>
ssec_daily = pd.read_scv('1LShowData_SSEC_daily.csv',encoding='GB2312',usecols=[6])
File "C:\Users\86135\anaconda3\envs\pythonProject1\lib\site-packages\pandas\__init__.py", line 261, in __getattr__
raise AttributeError(f"module 'pandas' has no attribute '{name}'")
AttributeError: module 'pandas' has no attribute 'read_scv'
试过重新安装pandas,但没有用