Chapter 6. Acquiring and Storing Data
Finding your first dataset(s) to investigate might be the most important step toward acheiving your goal of answering your questions. As we mentioned in Chapter 1, you should first spend some time refining your question until you have one specific enough to identify good data about but broad enough to be interesting to you and others.
Alternatively, you might have a dataset you already find interesting, but no compelling question. If you donât already know and trust the data source, you should spend some time investigating. Ask yourself: is the data valid? Is it updated? Can I rely on future or current updates and publications?
In this chapter, we will review where you can save and store data for later use. If databases are new to you, we will review when and how to use them and demonstrate how to set up a simple database to store your data. For those of you who are already familiar with databases or if your source is a database, we will cover some basic database connection structures in Python.
Donât worry if you havenât yet decided on a dataset; we will use several examples you can access in this bookâs repository.
Note
We strongly encourage you to come up with some applicable questions to use throughout this book so you can better learn by doing. These could be questions youâve been meaning to research or questions related to the data explored in the book. Even if the questions you pick are simple, itâs best to learn by writing ...
Get Data Wrangling with Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.