From 8e4488c4fe276be088acf399a70f77df60810de0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E8=A3=95=E5=9D=A4?= Date: Thu, 5 Dec 2019 15:02:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BC=A0=E5=8F=82=E5=BC=82?= =?UTF-8?q?=E5=B8=B8,parse=5Fcols=E5=9C=A8pandas=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E4=B8=AD=E5=B7=B2=E5=BA=9F=E5=BC=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tushare/stock/classifying.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tushare/stock/classifying.py b/tushare/stock/classifying.py index 34cdbdb2..a51e1375 100644 --- a/tushare/stock/classifying.py +++ b/tushare/stock/classifying.py @@ -263,7 +263,7 @@ def get_sz50s(): """ try: df = pd.read_excel(ct.SZ_CLASSIFY_URL_FTP%(ct.P_TYPE['http'], ct.DOMAINS['idx'], - ct.PAGES['sz50b']), parse_cols=[0, 4, 5]) + ct.PAGES['sz50b']), usecols=[0, 4, 5]) df.columns = ct.FOR_CLASSIFY_B_COLS df['code'] = df['code'].map(lambda x :str(x).zfill(6)) return df