我有一个18,000个numpy arrays的列表(posterior_list),长度为82,868。我有一个带有shape (82,868, 1)的数据帧(y_test)。数组是后验预测值。我想将该列表中的每个数组作为列附加到数据帧(y_test)上,最终结果具有形状(82868, 18001)。'>"; only pd.Series, pd.DataFrame, and pd.Panel (deprecated) objs are va
我正在使用Python3.6和Pandas 1.0.3。因此,我使用@jezrael的解决方案跟踪这个。但我得到了以下错误:"TypeError:无法安全地将非等效float64转换为int64“。这是我的密码import numpy as np
data = {'timestamp': [15887577