Skip to content

"TypeError: list indices must be integers, not Index" when using Google Analytics IO #8779

Closed
@msure

Description

@msure

I recently upgraded from pandas 14.1 to 15.0 and now I am having trouble with the Google Analytics IO tool. Even when running simple queries like:

ga_data = ga.read_ga(metrics='sessions',
    dimensions='date',
    start_date='2014-06-06',
    end_date='2014-10-25',
    filters='sourceMedium==google / organic',
    account_id='123456789') #obscured account id of course

I get the error "TypeError: list indices must be integers, not Index", whereas I use to get back ga_data as a (iirc) Series object with the dates as the index.

Some context: I use Anaconda from Continuum Analytics. My upgrade process was:

  1. conda update conda
  2. conda update anaconda
  3. conda update pandas
    The latter also upgraded numpy and one other package (I don't recall the other packages).

Sorry, but I do not have any pull requests to fix (still really new to this). Please let me know if there's anything else I can provide (e.g. the stack trace).

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions