/read_gtrends

Google Trends - Read and Parse CSV file into Time Series

Primary LanguagePython

Google Trends Reader

Description

This module reads and parses a Google Trends CSV file and returns a Pandas time series object.

The resulting time series object can be used for plotting and data analysis.

Requirements

This module is compatible with Python 2.7+/3.3+.

Dependencies

Pandas 0.13+

dateutil 2.1+

Usage

Example:

> from read_gtrends import read_gtrends
> my_series = read_gtrends.read_gtrends('path/to/report.csv')
> test.head()
    2004-01-04    44
    2004-01-05    44
    2004-01-06    44
    2004-01-07    44
    2004-01-08    44
    dtype: int64
> type(my_series)
    pandas.core.series.Series

Run unit tests:

> python -m unittest discover
    Ran 1 test in 0.055s

    OK