📜  csv 库 python 将 dict 转换为 csv - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:19.535000             🧑  作者: Mango

代码示例4
pythonCopyimport pandas as pd

dict_from_csv = pd.read_csv('csv_file.csv', header=None, index_col=0, squeeze=True).to_dict()
print(dict_from_csv)