【发布时间】:2020-11-16 13:32:43
【问题描述】:
我的数据框有 4 列,如行、列、管和评级。转换为字典后,我从列名中获取了一个额外的元素作为字符串。我们如何从字典中删除字符串。
nn = final_als_ho[['rows','tube', 'cols', 'rating']] nn = nn.set_index(['rows', 'tube', 'cols']).stack(0).to_dict()
【问题讨论】:
标签: math statistics linear-algebra tensor factorization