我已经使用np.savez()保存了一个numpy数组,并使用以下命令打开它: a = np.load('/file.npz', allow_pickle=True)
a = cp.array(a['arr_0']) 但是如何读入数组a的特定行呢?每次加载整个东西似乎效率很低。 在索引x和y之间的特定行中加载的任何帮助都比通常的加载方式更快,非常感谢!答案建议在答案中
如果我从列表中的一些现有元素中创建一个新列表,python会将这些项复制到新列表中吗?下面是一个代码示例,以澄清我的意思:structure.append([pd.read_excel("df1.csv"), item1]) #contains a largestructure[0][0]["some_column1"], structure[1][0]["some_column2"]] #here we save just the dataframe
在执行其他类