Pandasを用いてfor文を使用したところ、
以下のコードは実行されるのに対し、
Python
1list_a = [a1, a2, a3, a4] 2a1, a2, a3, a4 = [fft(i.iloc[:,2], len(i.iloc[:,2]), 125) for i in list_a]
以下のコードを実行すると
Python
1for j in range(1, 9): 2 list_a = [a1, a2, a3, a4] 3 a1, a2, a3, a4 = [fft(i.iloc[:,j-1], len(i.iloc[:,j-1]), 125) for i in list_a]
AttributeError: 'list' object has no attribute 'iloc'
このようなエラーが出てしまいます。
原因はどのように考えられるでしょうか。
よろしくお願い致します。

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/01/08 05:55