From 5bf088aea1e5be2c212f0203cea212f0146bfdce Mon Sep 17 00:00:00 2001 From: Jeff Reback Date: Tue, 13 Oct 2015 18:09:38 -0400 Subject: [PATCH] DEPR: deprecate pandas.io.ga, #11308 --- doc/source/whatsnew/v0.17.1.txt | 2 ++ pandas/io/ga.py | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/doc/source/whatsnew/v0.17.1.txt b/doc/source/whatsnew/v0.17.1.txt index 1eff7d01d9d91..b9e674c819e49 100755 --- a/doc/source/whatsnew/v0.17.1.txt +++ b/doc/source/whatsnew/v0.17.1.txt @@ -43,6 +43,8 @@ API changes Deprecations ^^^^^^^^^^^^ +- The ``pandas.io.ga`` module which implements ``google-analytics`` support is deprecated and will be removed in a future version (:issue:`11308`) + .. _whatsnew_0171.performance: Performance Improvements diff --git a/pandas/io/ga.py b/pandas/io/ga.py index b6b4081e3650f..5525b34951524 100644 --- a/pandas/io/ga.py +++ b/pandas/io/ga.py @@ -4,6 +4,13 @@ 3. Goto APIs and register for OAuth2.0 for installed applications 4. Download JSON secret file and move into same directory as this file """ + +# GH11038 +import warnings +warnings.warn("The pandas.io.ga module is deprecated and will be " + "removed in a future version.", + FutureWarning, stacklevel=2) + from datetime import datetime import re from pandas import compat