问题是csv将由用户提供,并且它可以根据用户的不同而具有可变数量的列。我对列名没有预先的了解。我使用pandas读取csv并将列名读入python列表,从而解决了这个问题。但是,当我试图通过提供索引列表作为列名来访问dataframe列时,出现了问题。List of column names, colndf.ix[:, df.coln[0]] # to access the first column of the
我有以下代码(Python2.7):pages = [i for i in range(1, int(math.ceil(reports.get_reports_countwith ThreadPoolExecutor(max_workers=len(pages)) as executor:
futh = [executor.submit(reports.fill_dataframecols_list = ['order_id', 'customer_id',