Skip to content
Advertisement

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:

JavaScript

Output:

<class ‘google.cloud.bigtable.row_data.PartialRowData’>

Query:

How do we read the values from PartialRowData obj?

Advertisement

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

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement