Hello, 

I was trying to download report and save it as a data frame, using the 
*report_downloader.DownloadReport. 
*It do help me get the data and I can save it to a csv. However when I try 
to read the csv it give me the error as follow: 

Traceback (most recent call last):
  File "C:\Users\Desktop\new\download.py", line 40, in <module>
    main(adwords_client)
  File "C:\Users\Desktop\new\download.py", line 28, in main
    df = pd.read_csv('adwtemp.csv', index_col=None, header=1)
  File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 709, in 
parser_f
    return _read(filepath_or_buffer, kwds)
  File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 449, in 
_read
    parser = TextFileReader(filepath_or_buffer, **kwds)
  File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 818, in 
__init__
    self._make_engine(self.engine)
  File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 1049, in 
_make_engine
    self._engine = CParserWrapper(self.f, **self.options)
  File "C:\Python27\lib\site-packages\pandas\io\parsers.py", line 1695, in 
__init__
    self._reader = parsers.TextReader(src, **kwds)
  File "pandas\_libs\parsers.pyx", line 565, in 
pandas._libs.parsers.TextReader.__cinit__
pandas.errors.EmptyDataError: No columns to parse from file

Is there any way I can get the data in the format of data frame? Thanks in 
advance. 

Plus, I tried to use *report_downloader.DownloadReportAsStream, *but 
stacked at the same place when I try to convert the instance to a data 
frame. 

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/280d5c26-a5c7-42bb-b942-db388ab98cef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • ... zhaoyu . wang
    • ... 'Dannison Yao (AdWords API Team)' via AdWords API and Google Ads API Forum

Reply via email to