导入到_csv错误

问题描述 投票:0回答:0

将 numpy 导入为 np pd.df_pc.to_csv("df_pc_variablesreduce")

AttributeError Traceback(最后一次调用) 单元格输入 [70],第 2 行 1 将 numpy 导入为 np ----> 2 pd.df_pc.to_csv("df_pc_variablesreduce")

File ~/anaconda3/lib/python3.10/site-packages/pandas/init.py:264,在getattr(名称) 260 来自 pandas.core.arrays.sparse import SparseArray as _SparseArray 262返回_SparseArray --> 264 raise AttributeError(f"module 'pandas' has no attribute '{name}'")

AttributeError: 模块 'pandas' 没有属性 'df_pc'

export-to-csv
© www.soinside.com 2019 - 2024. All rights reserved.