I'm trying to read a csv file from GC but the read method is producing a 'typeError', below is a code snippet that I am working with:
import apache_beam as beam
from apache_beam.dataframe.convert import to_dataframe
def print_row(row):
print(row)
pipeline = beam.Pipeline()
test_pipeline = (pipeline
| "read_from_bigquery" >> beam.io.ReadFromBigQuery( table = 'gs://cloud-samples-data/bigquery/sample-transactions/transactions.csv')
| "print rows" >> beam.Map(lambda r: (print_row(r))))
pipeline.run()