I am learning bigquery with python notebook, and I found out the very first lines of code as follows:
from google.cloud import bigquery
client = bigquery.Client()
hn_dataset_ref = client.dataset('hacker_news', project='bigquery-public-data')
hn_dset = client.get_dataset(hn_dataset_ref)
My question is why do we need to construct a dataset reference?
Can we do in a shorter way like below?
from google.cloud import bigquery
client = bigquery.Client()
hn_dset = client.get_dataset('bigquery-public-data.hacker_news')`