改写为matlab: item_name = ['idx','seq','lpips'] df = pd.DataFrame(columns=item_name) value = [] s = pd.Series(value, index=df.columns) df = df.append(s, ignore_index=True) value = [] df.to_excel(outpath)
时间: 2024-04-17 22:29:15 浏览: 142
matlab_read_idx-ubyte.rar_MNIST_arab_handwriting_matlab手写数据_mnis
item_name = {'idx', 'seq', 'lpips'};
df = table('Size', [0, length(item_name)], 'VariableNames', item_name);
value = {};
s = struct(value, df.Properties.VariableNames);
df = [df; s];
writetable(df, outpath);
阅读全文