环境配置笔记23-adata.write报错ValueError

2024-09-13  本文已影响0人  江湾青年

ValueError: '_index' is a reserved name for dataframe columns.

解决方案:

adata.__dict__['_raw'].__dict__['_var'] = adata.__dict__['_raw'].__dict__['_var'].rename(columns={'_index': 'features'})

参考

https://github.com/theislab/scvelo/issues/255

上一篇下一篇

猜你喜欢

热点阅读