我正在运行pandas.io.ga查询并且绝对没有返回任何对象?我已经将secret_clients.json文件复制到两个文件夹只是为了安全,因为我不知道要做哪个pandas / io文件夹,我怀疑问题是它无法找到client_secrets.json文件 - 但是没有错误,我没有线索?!
sudo cp~ / Desktop / client_secrets.json /Users/atrombley/anaconda/pkgs/pandas-0.14.1-np19py27_0/lib/python2.7/site-packages/pandas/io /
sudo cp~ / Desktop / client_secrets.json /Users/atrombley/anaconda/lib/python2.7/site-packages/pandas/io /
import numpy as np; import pandas as pd; import pandas.io.ga as ga; import os
print ga.read_ga(
account_id = "private",
property_id = "private",
metrics = ['users', 'pageviews'],
dimensions = ['dayOfWeek'],
start_date = "2015-01-01",
end_date = "2015-01-02",
index_col = 0,
)
>>> ## THIS IS JUST BLANK? NOTHING PRINTED?