May 2019
Beginner
528 pages
29h 51m
English
Throughout this book, you’ll work with many datasets as you learn data-science concepts. CSV (comma-separated values) is a particularly popular file format. In this section, we’ll demonstrate CSV file processing with a Python Standard Library module and pandas.
csvThe csv module11 provides functions for working with CSV files. Many other Python libraries also have built-in CSV support.
Let’s create an accounts.csv file using CSV format. The csv module’s documentation recommends opening CSV files with the additional keyword argument newline='' to ensure that newlines are processed properly: ...
Read now
Unlock full access