Skip to content
Advertisement

Tag: google-cloud-platform

google-cloud-resource-manage list projects 403 The caller does not have permission

I created a GCP service account and assigned the needed permissions for listing the projects inside the organization. When I’m using the gcloud cli, everything works: But when I try the “same” with the Python Client for Google Cloud Resource Manager, I receive a 403 The caller does not have permission error message. Does the Python Client for Google Cloud

How to write BigTable table data into a pandas dataframe?

I am trying to read a GCP BigTable – table to a pandas dataframe, and currently, the function I am using to fetch rows from BigTable is read_rows(), which returns PartialRowData. Code: Output: <class ‘google.cloud.bigtable.row_data.PartialRowData’> Query: How do we read the values from PartialRowData obj? Answer There’s an example on how to call read_rows in this documentation: https://googleapis.dev/python/bigtable/latest/table.html#google.cloud.bigtable.table.Table.read_rows

Need help understanding ‘no attribute’ error message in Google Natural Language API

Situation I’m trying to run Google’s Cloud NLP sentiment analysis on a text field pulled from the Twitter API with Tweepy and then turned into a pandas Dataframe. That Dataframe has a text field called text, which is the tweet content on which I’d like to run the sentiment analysis. This is my reference code: https://cloud.google.com/natural-language/docs/reference/libraries Expectation I was expecting

Google PubSub – Ack a message using ack_id

I have an architecture made of: PubSub Topic ‘A’ Subscription ‘B’ on topic ‘A’ that pushes messages to the endpoint ‘X’ Cloud Function ‘C’ triggered by the endpoint ‘X’, runtime in Python Everytime a new message is published on the topic ‘A’, the subscription ‘B’ pushes it to the endpoint ‘X’ that triggers the Cloud Function ‘C’. The problem I’m

Advertisement