pd.set_option('display.width', 100)
print(file.shape)
df = pd.read_csv('emotion_values.csv')
df = df.reset_index()
【output】:
index ... name
0 0 ... a
1 1 ... b
2 2 ... c
3 3 ... d 大概是这样 64行3列
F=df.drop('index', inplace=True, axis=1)
print(F)
[output]:
None (不知道为啥?)
for index, row in df.iterrows():
# df.set_value(index, 'lengths', row['Features'].shape[0])
df.at(index, 'lengths', row['Features'].shape[0])
报错:
Traceback (most recent call last):
File "D:/Project/pycharm/RNN/create_mfcc.py", line 86, in
df.at(index, 'lengths', row['MFCC'].shape[0])
TypeError: '_AtIndexer' object is not callable