def get_st_classified():
 df = fd.get_stock_basics()
 df.reset_index(level=0, inplace=True)
 df = df[ct.FOR_CLASSIFY_B_COLS]
 df = df.ix[df.name.str.contains('ST')]
 df = df.sort('code').reset_index(drop=True)
 return df

def get_st_classified ( ) : df = fd . get_stock_basics ( ) df . reset_index ( level = 0 , inplace = True ) df = df [ ct . FOR_CLASSIFY_B_COLS ] df = df . ix [ df . name . str . contains ( 'ST' ) ] df = df . sort ( 'code' ) . reset_index ( drop = True ) return df
return dataframe code :股票代码 name :股票名称 .