Loading tutorials
read_csv first turned text into a DataFrame.5 min readread_csv load a simple file. Here you will learn how to load files that do not follow the default layout: a comma as separator, column names in the first row5 min readpd.read_csv on a simple file and know what a DataFrame is. The earlier chapters on first reads, inspection, and separators and headers are the background. Here you will restrict what the parser loads, so wide or long files cost less memory and time and need less cl5 min readread_csv decides on column types, why those guesses sometimes go wrong, and how to override them. It assumes you can run Python scripts or notebooks, have pandas installed, and know what a DataFrame is. The examples read small in-memory strings with StringIO, so you can r6 min readread_csv with its default settings. Here you will control which text becomes a missing value and how numbers written in non-US formats are read. Both are dec5 min readread_csv and read_excel, know what a DataFrame and a dtype are, and have pandas 2.0 or later installed. The date_format argument does not exist in earlier versions.4 min readread_csv from the earlier chapters. Here you learn what pandas.read_excel does, how it differs from read_csv, and which errors you will meet firs5 min readpd.read_excel on a simple workbook and that an Excel engine such as openpyxl is installed. It covers how the sheet_name argument chooses which sheets to load, what type each choice returns, and how to combine sheets afterwards.5 min readpandas.read_excel which part of a sheet is the table, so you get a clean DataFra5 min readread_excel on a workbook. Here you learn what happens underneath: pandas does not read Excel files itself. It hands the work to a separate library called an 4 min readpd.read_csv with its basic arguments and that you know what a DataFrame is. Two things often break a load. The bytes in the file may not match the text encoding pandas expects, or some rows may not have the number of fields the header promises. Both failur5 min readread_csv with usecols and dtype, and that you know what a DataFrame and a groupby are. You will learn how to process a CSV file that is too large to load at once. The approach is to read it in pieces and combine the results.6 min readread_csv and read_excel, know what a DataFrame is, and have met the options for dtypes, missing values and dates from earlier chapters. Here you will check that a loaded DataFrame matches what you expected. The goal is to catch silent parsing problems at load tim5 min read