我正在尝试使用熊猫将数据帧文件写入csv。我收到以下错误AttributeError:'list'对象没有属性'to_csv'。我相信我在正确地编写语法,但是谁能指出在尝试将数据帧写入CSV时我的语法不正确的地方? 这是文件链接的链接:https://s22.q4cdn.com/351912490/files/doc_financials/quarter_spanish/2018/2018.02.25_Release-4Q18_ingl%C3%A9s.pdf 谢谢您的宝贵时间!
import tabula
from tabula import read_pdf
import pandas as pd
from pandas import read_json, read_csv
a = read_pdf(r"C:\Users\Emege\Desktop\micro 1 true\earnings_release.pdf",\
multiple_tables= True, pages = 15, output_format = "csv",\
)
print(a)
a.to_csv("a.csv",header = False, index = False, encoding = "utf-8")