Loading tutorials
int64, float64, and object. You do not need to know anything about joins yet. The chapter before this one introduced keys. Here you use th6 min readhow argument of merge. It decides which rows survive when the keys of the two tables don't match perfectly. It assumes you can build DataFrames, select columns, and read the index, and that you have seen a basic merge on a shared key column. It also assumes you know t6 min readmerge on a single shared column and choose a join type with how. It also assumes you know what a DataFrame column and a dtype are. Here you will handle two situations that real data produces often: the key has a different name in each table, or one column5 min readmerge with on, left_on, and right_on. Earlier chapters covered those. Here the question is what pandas does when both tables have a column with the same name and that column is not the one you join on5 min readmerge with how and on. Here you will use DataFrame.join and the left_index and right_index options of merge. Both match rows by index labels instead of by ordinary columns.5 min readmerge on a shared key column, and that you know the four join types (inner, left, right, outer). It also assumes you can read the index and dtypes of a DataFrame. Here you will learn to predict how many rows a merge returns, to see why that number 5 min readNaN. This chapter covers two merge arguments that make these problems visible: validate, which checks the key relationshi6 min readint64, float64, object, string). It also assumes you know merge with on=, the four join types, and the indicator option from earlier chapters.5 min readmerge on a key column and read its output. It also assumes you know what a DataFrame index is. Here you will learn when pd.concat is the better tool, how it aligns data, and which mistakes it produces.6 min readmerge on keys, read the _x and _y suffixes, and reason about row counts for one-to-many keys from earlier chapters.5 min readmerge with on, how, and suffixes, and that you know the datetime64 dtype and pd.to_datetime. You also need to know how to sort a DataFrame with sort_values.6 min readmerge, join, and concat, that you know how join types and cardinality change row counts, and that you know the common dtypes (int64, object, category). Timings differ by machine and pandas version, so t6 min read