我正在尝试使用pandas和matplotlib为两种类型的变量绘制比较条图,并从python中的csv文件中对它们进行计数。每种类型的变量数据都存储在不同的目录中。我为不同的数据和concate数据创建了两个循环,并绘制它们,但是在循环和附加数据方面存在一个问题。sorted(glob.glob(os.path.join(path, "*table.csv")))
# loop through the files and re
我尝试用一个for循环创建多个空DataFrames,其中每个DataFrame都有一个存储在列表中的惟一名称。根据下面的示例代码,我想要三个空DataFrames,一个名为A[],另一个B[]和最后一个C[]。谢谢。import pandas as pdfor i in report:
report[i]=pd.DataFrame()