Using pre-created or custom datasets is also a very common practice in data analytics. Thus, to load data into a table:
- Download or locate the data you intend to load. For example, we are using the babynames ZIP file, which is an open dataset. Download it using this URL: http://www.ssa.gov/OACT/babynames/names.zip.
- Extract the file at your desired location and you will notice a yob2014.txt file, which is a CSV file.
- Go to the console of BigQuery and locate a downward arrow near your project name. Then, click on the Create new dataset button:
![](https://static.packt-cdn.com/products/9781788834308/graphics/assets/c5527ddb-b93d-47c9-880c-b2a0df80b55b.png)
- Give the dataset an ID of babynames:
![](https://static.packt-cdn.com/products/9781788834308/graphics/assets/32c93b6b-6ad4-47ab-aa71-c36ddb438032.png)
- Keep all of the other settings as default. Click the OK button
- Find the drop-down icon near dataset ID and click on the Create new table option:
![](https://static.packt-cdn.com/products/9781788834308/graphics/assets/9fec11a9-62a2-446b-813d-23efe86d7dcc.png)
- To upload the datafile, click on the Choose file button and enter the path of your datafile, which is yob2014...