I am trying to read a csv file save in gs to a dataframe for analysis
I have follow the following steps without success
mybucket = storage.Bucket('bucket-name')
data_csv = mybucket.object('data.csv')
df = pd.read_csv(data_csv)
this doesn't work since data_csv is not a path as expected by pd.read_csv I also tried
%%gcs read --object $data_csv --variable data
#result: %gcs: error: unrecognized arguments: Cloud Storage Object gs://path/to/file.csv
How can I read my file for analysis do this?
Thanks