Path to store feature data.
features, channels = zip(*fset.columns)
for v in [fset.values, features, channels] + list(kwargs.values()):
if np.array(v).dtype == np.object:
raise ValueError("Cannot save objects in .npz format.")
np.savez(path, values=fset.values, index=fset.index.values.astype(str),
After Change
if dt.endswith("O"):
size = max(len(x) for x in arr["index"])
dt_list[i] = (name, "U" + str(size))
kwargs[k] = arr.astype(dt_list)
// Bypass savez to allow for `allow_pickle` keyword
// See https://github.com/numpy/numpy/pull/5770
np.lib.npyio._savez(path, [], kwargs, compress=True, allow_pickle=False)