For javascript the call to api "gapi.auth.authorize" for google analytics not getting executed.

I have been trying to use Google Analytics Core Reporting API with JavaScript. I am new to it and I was trying to use the sample code provided by google for core_reporting_api_v3. But after the...

Google Analytics API access without local browser in python

I want to query the Google Analytics API using Python to periodically download data from my Analytics account and store data in a local database. I am basically following the steps as given in the...

any way to tell if user's python environment is anaconda

i'm distributing an in-house python lib where i'd like to make it such that if the user is using anaconda when running this file, that updates to the dependencies of the library will be made...

Pycharm does not show plot

Pycharm does not show plot from the following code: import pandas as pd import numpy as np import matplotlib as plt ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000',...

OS X - Deciding between anaconda and homebrew Python environments

I use Python extensively on my Mac OS X, for both numerical applications and web development (roughly equally). I checked the number of Python installations I had on my laptop recently, and was...

Pycharm Couldn't connect to console process

I recently installed Caffe along with OpenCV and other dependencies. Pycharm worked well for 2 days and today I can't start Python Console in Pycharm anymore. I can start python in terminal with...

How to remove @strin3http//schemas.microsoft.com/2003/10/Serialization/� received from service bus queue received in python script?

I have set the output of Azure stream analytics job to service bus queue which sends the data in JSON serialized format. When I receive the queue message in python script, along with the data in...

apache spark "Py4JError: Answer from Java side is empty"

I get this error every time... I use sparkling water... My conf-file: ***"spark.driver.memory 65g spark.python.worker.memory 65g spark.master local[*]"*** The amount of data is about 5...

ImportError: No module named google.protobuf

I am following this guide and using the exact sample of addressbook.proto. Post the content of compiler generated addressbook_pb2.py file as well. When I run the following simple program, there is...

How to set up different desktop launchers for anaconda spyder using conda environments?

I have created a virtual machine for use in an upcoming data science lecture. I installed CentOS minimal into Virtualbox and included an XFCE desktop. I have also installed two analytic stack...

Why can't I use a starred expression?

My code $ python Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul 2 2016, 17:53:06) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux Type "help", "copyright", "credits" or "license" for...

How do I get rid of Python Jupyter notebook error: 404 GET /nbextensions/nbextensions_configurator/tree_tab/main.js

Sys: Macbook 2012 Python: Python 3.5.1 :: Continuum Analytics, Inc. Anaconda: conda 4.2.13 I am having issues using notebook extensions (nbextensions) in Jupyter notebook and don't know how to...

ImportError: No module named tensorflow

Please help me with this error I have installed the tensorflow module on my server and below is it's information [email protected]:~$ pip show tensorflow Name: tensorflow Version:...

How to install difflib module in python 2.7 windows10

currently facing difficulty installing difflib module in python 2.7 verion in windows 10 system. i want it to perform some text analytics analysis tried using apt-get install npm npm install...

Convert integer to hours and minutes

I'm working on a Python script that will read a file and grab a string total_time. Currently, this is what I have. if("Total time" in data): total_time=int(filter(str.isdigit,...

How do you feed Scipy's bvp only the BCs you have?

The only example/docs I can find are on the Scipy docs page. To test, I'm looking at a time-independent Schrod eq in a 1d infinite potential well. This has a neat analytic solution found by...

Matplotlib animation with time-dependent parameter

I am new using python and I would like to ask you a problem that I have with my current code. I am solving a partial differential equation (1D in space) and I want to make an animation at each...

Read data from Youtube Analytics API without Oauth2

I am currently writing a python script to pull information from YouTube Analytics API for a list of separate YouTube channels. The output would be, for example, count video views for each YouTube...

How can I capture detected image of object Yolov3 and display in flask

I am working on Real Time Object Detection using YOLOv3 with OpenCV and Python. It's works well. Currently I try to capture detected image of object and display in flask. Do someone know how to...

Google Analytics core reporting API, fetch and dump

I'm trying to write a google analytics connector in a lambda function using python to fetch and store all the metrics and dimensions values that the Google Core Reporting API provides. As of now,...

Is there a way of working in spherical coordinates in SymPy?

I am working in a script to do analytical calculations in Python. For it I would need vector representation of my parameters and also some basic vector operations such as Gradient and Divergence,...

Euler's method for different step sizes . How does one change the code of the algorithm to account for different values of the step size?

I have an algorithm for a numerical differential equation problem called Euler's method. Essentially Euler's method approximates a solution to differential equations. My function is working for a...

Pyspark write and save a dataframe into csv file gives an error

I have pyspark initiated in the local mode with the aim of learning. Everything almost going well until i tried to write and save a dataframe into a csv file using this code: out_path =...

Azure Synapse: How to use Spark job reference files?

I created a Spark job definition following the PySpark section of this...

How can I configure DBT Dependencies without manually running dbt deps?

I am new to DBT and currently trying to build a Docker container where I can directly run DBT commands within. I have a file where I export env variables (envs.sh) that looks like: export...

Gauge: Failed to start gauge API: Timed out connecting to python #1932

Describe the bug Failed to start gauge API: Timed out connecting to python To Reproduce Steps (or project) to reproduce the behavior: Initialise a gauge project Run the gauge command See...

Google Analytics API Python Error 403 - Insufficient Permissions

I've set my analytics api and credentials, downloaded the client_secrets.json and copied the client_email. Then, I went to my Google Analytics account > property > view > admin > User Management...

Twitter scraping using Python

I've been working on a project to reverse-enginner twitter's app to scrape public posts from Twitter using an unofficial API, with Python. (I want to create an "alternative" app, which is simply a...

Pub/Sub to BigQuery (Batch) using Dataflow (Python)

I created a streaming Dataflow pipeline in Python and just want to clarify if my below code is doing what I expected. This is what I intend to do : Consume from Pub/Sub continuously Batch load...

Spark: How to flatten data frame with dynamic nested structs / arrays

How to tidy data frame(json ) with dynamic nested structs / arrays in PySpark ? I have 10000 json files, each has static and dynamic fields as described below. Static names: data, label, units,...