4 Accessing Data from Files and APIs

Accessing data and getting it into your script is the first step of data analysis. This chapter covers several ways of importing data from files and other sources into your Python application, as well as ways to export data to files. You’ll see how to access the content of different types of files, including those stored locally on your machine and others accessible remotely through HTTP requests. You’ll also learn how to get data by sending requests to APIs that are accessible via a URL. Finally, you’ll learn how to load different types of data into pandas DataFrames.

Importing Data Using Python’s open() ...

Get Python for Data Science 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.