Loading tutorials
int64, float64, and object. You do not need to have used merge before. This chapte3 min readmerge once with on=. It covers the how argument, which decides what happens to rows whose key has no match in the other table.2 min readmerge with on= and a how= join type. Here you will match columns that have different names, match on several columns at once, and handle the shared column names that result.2 min readmerge with on= and left_on=/right_on=. You should also know the default inner join. Here you will learn what happens when both tables have a non-key column with the same name, and how to control the result.2 min readmerge works, including join types, and that you understand what a DataFrame index is. Here you will use DataFrame.join, which matches rows by index labels.2 min readmerge with the how argument. Here you learn to predict how many rows a merge returns before you run it.3 min readNaN. This chapter covers two checks that make those problems visible: validate, which raises an error when the key relationship is not what you expected3 min readmerge with on=, know the four join types, and know what a dtype is. A merge can run without errors and still return wrong rows because the key columns look alike but don't compare as equal. Three causes cover most of these cases: mismatched dtypes, missing values2 min readmerge with a key column. You will learn when pd.concat is the right tool and when it is not.2 min readmerge, know the join types, and understand how row counts change with duplicate keys. A cross join is the one join that uses no key.2 min readmerge with on and by-style key columns, how how="left" behaves, and how to build datetime columns with pd.to_datetime. You should also be comfortable reading NaN in merged output.2 min readmerge and join, know the join types, and understand how duplicate keys change row counts. Here you will learn which choices make merges slower or larger, and how to reduce that cost.2 min read