Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read_ga bug #8773

Closed
benoitpointet opened this issue Nov 10, 2014 · 5 comments
Closed

read_ga bug #8773

benoitpointet opened this issue Nov 10, 2014 · 5 comments
Labels

Comments

@benoitpointet
Copy link
Contributor

Cannot get io.ga to work since update to 14.1 (using 0.15.0 right now):

TypeError: list indices must be integers, not Index

import pandas.io.ga as ga
df = ga.read_ga(
    property_id  = "UA-XXX",
    profile_id   = "XXX",
    metrics      = ['users'],
    dimensions   = ['dayOfWeek','hour'],
    start_date   = "2014-02-03",
    end_date     = "2014-08-03"
)
@jreback
Copy link
Contributor

jreback commented Nov 10, 2014

GA has not gotten much care and feeding in quite a while. Biggest problem is it doesn't have really any automatic tests. So if you'd like to debug, pls provide a full-traceback (and debug so that you can show what the various variables are).

@jreback
Copy link
Contributor

jreback commented Nov 11, 2014

http://stackoverflow.com/questions/26858077/pandas-io-ga-not-working-for-me-solved

looks like passing index_col=0 will solve this.

as I said above, still interested in better testing/improvements in ga. ping if you are interested.

@jreback jreback closed this as completed Nov 11, 2014
@benoitpointet
Copy link
Contributor Author

Thanks it somehow works. Don't get how and when that got broken.

I think the first contribution I could make is at the documentation level. Since there's really not much atm.

@jreback
Copy link
Contributor

jreback commented Nov 11, 2014

@benoitpointet that would be fantastic actually, open issue is #3508

I would create a new sub-section in remote_data.rst. Put a fully-working example (but in a code-block as the stumbling block here is authentication, so it won't actually work). But run it on your system (and you can simply change the displayed names/pw's before you paste it in). Actual code use would be bonus, e.g. show a snippet of the results).

!

@jreback
Copy link
Contributor

jreback commented Nov 11, 2014

@benoitpointet actually would be really helpful if you could pull down this branch: #8785

and run it and see if the Warning's disappear (they are from a change in the way Index ops worked in 0.15.0), but never tested in ga, so didn't see them until the SO post.

and lmk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants