Loading tutorials
head, info, or describe, you need a clear picture of what a DataFrame is made of. Each of those methods reports on one part of that structure. This chapter names the parts, shows how to reach each one, and explains how they affect what the later inspection methods tell you.7 min readhead and tail, the two methods you use to look at the first and last rows of a DataFrame. They are the quickest way to confirm that a file loaded the way you expected.6 min readshape, columns, index, and dtypes. It assumes you know basic Python syntax, have pandas installed and imported as pd, and understand that a DataFrame is a table of rows and labelled c6 min readDataFrame.info() answers three questions in one call: how many rows and columns the table has, what type each column holds, and how many values in each column are present. This chapter assumes you can build a DataFrame and have used head and shape. It covers every part of the output, the param5 min readpd, and know that a DataFrame is a table of rows and labelled columns. Earlier chapters covered head, tail, shape, and the basic layout of info. Here you use the non-null counts in that output to find missing data, and you le6 min readpd. It also assumes you know a DataFrame is a table of rows and labelled columns. You should have already previewed data with head and tail and checked dtypes and non-null counts with info. Here you will learn what `d6 min readpd, and know how describe behaves by default: it summarizes the numeric columns and skips missing values. Here you will change which quantiles describe reports, learn the rules it enforces, and use the extra rows to judge spread 6 min readDataFrame.describe() summarizes numeric columns and silently skips the rest. This chapter covers the include and exclude arguments, which change which columns are summarized. It also covers the shape of the table that comes back and the errors you can hit.6 min readhead, info, and numeric describe. You should know that describe skips non-numeric columns by default, that include and exclude change that, and that info shows each column's dtype and non-null count. Here the focus is on what `6 min readDataFrame.info() (index range, column names, non-null counts, dtypes) and know what a dtype is. It covers the last line of that output, the memory figure, and how to turn it into a decision about your data.7 min readhead, info, and describe and read their basic output. You should also know that a column's dtype (its data type) controls which operations work on it. The goal here is to use those three methods as detectors. For each kind of problem, you will see which7 min readhead, tail, info, and describe each report. This chapter combines them into one routine you can run on any unfamiliar DataFrame. It also adds a few checks that catch problems the individual methods can miss.6 min read