Wednesday, 15 February 2012

assigning dataframe to Panel in Pandas -


I want to read a list of CSV files from a directory and allot them in a panel as a series of dataframe But the panel does not seem to take withdraw from read_csv () I am using panda 0.11 and NumPy 1.7.1. Here's a snippet of what I've done here:

  dp = pd.Panel ({}) for csv in js = csv_list: dp [j] = pd.read_csv (csv) , Index_col) = key, sep = delim_list [j]) j + = 1   

But the waste shows that:

  & gt; & Gt; & Gt; DP [0] empty dataframe column: [] index: []   

What am I doing?



No comments:

Post a Comment