def get_industry_classified(standard='sina'):
 if (standard == 'sw'):
  df = _get_type_data((ct.SINA_INDUSTRY_INDEX_URL % (ct.P_TYPE['http'], ct.DOMAINS['vsf'], ct.PAGES['ids_sw'])))
 else:
  df = _get_type_data((ct.SINA_INDUSTRY_INDEX_URL % (ct.P_TYPE['http'], ct.DOMAINS['vsf'], ct.PAGES['ids'])))
 data = []
 ct._write_head()
 for row in df.values:
  rowDf = _get_detail(row[0], retry_count=10, pause=0.01)
  rowDf['c_name'] = row[1]
  data.append(rowDf)
 data = pd.concat(data, ignore_index=True)
 return data

def get_industry_classified ( standard = 'sina' ) : if ( standard == 'sw' ) : df = _get_type_data ( ( ct . SINA_INDUSTRY_INDEX_URL % ( ct . P_TYPE [ 'http' ] , ct . DOMAINS [ 'vsf' ] , ct . PAGES [ 'ids_sw' ] ) ) ) else : df = _get_type_data ( ( ct . SINA_INDUSTRY_INDEX_URL % ( ct . P_TYPE [ 'http' ] , ct . DOMAINS [ 'vsf' ] , ct . PAGES [ 'ids' ] ) ) ) data = [ ] ct . _write_head ( ) for row in df . values : rowDf = _get_detail ( row [ 0 ] , retry_count = 10 , pause = 0.01 ) rowDf [ 'c_name' ] = row [ 1 ] data . append ( rowDf ) data = pd . concat ( data , ignore_index = True ) return data
parameters standard sina:新浪行业 sw：申万 行业 returns dataframe code :股票代码 name :股票名称 c_name :行业名称 .