for code in codes:
            # Get the data of the stock that corresponds to the current ticker symbol.
            current_stock = origin_data[code]
            mask = (current_stock['Last'] != 0) & (current_stock['VolumeTrade'] == 0) & (
                    current_stock['ValueTrade'] == 0) & (current_stock['NumTrades'] == 0)
            # 删除出问题的指定行
            current_stock = current_stock.drop(current_stock[mask].index, axis=0, inplace=True)