how to deal with .mdb access files with python

后端 未结 6 1118
逝去的感伤
逝去的感伤 2020-12-08 00:45

Can someone point me in the right direction on how to open a .mdb file in python? I normally like including some code to start off a discussion, but I don\'t know where to s

6条回答
  •  北海茫月
    2020-12-08 01:10

    This code will convert all the tables to CSV.

    Happy Coding

    for tbl in mdb.list_tables("file_name.MDB"):
        df = mdb.read_table("file_name.MDB", tbl)
        df.to_csv(tbl+'.csv')
    

提交回复
热议问题