Loading tutorials
sort_values on a single column. Here you will sort on several columns at once and choose a direction for each one.2 min readsort_values on one column. Real data often has gaps, so you need to know what happens to those rows when you sort.2 min readsort_index, which orders a DataFrame by its row labels instead of its values. It assumes you can build a DataFrame, select columns, and use sort_values from the earlier chapters.2 min readsort_values from earlier chapters. Here you will sort by a transformed version of a column without changing the stored data.2 min readsort_values on one or more columns, and read the index labels on the left of a printed table. Here you will control what happens to rows that tie, and what happens to the index after a sort.2 min readsort_values. It uses the same small sales table as the earlier chapters.2 min readsort_values. It builds on the sales DataFrame from earlier chapters.2 min readsort_values output from the earlier chapters.2 min readgroupby with a single aggregation such as df.groupby("region")["units"].sum(). Here you will use named aggregation to control the output column names.2 min readgroupby with named aggregation. It also assumes you know sort_values from earlier chapters. Here you combine them: aggregate first, then sort the summary.2 min readgroupby with agg as shown earlier. It covers how missing values (NaN) change summaries and groups, and how to control that behavior.2 min readgroupby with agg. Here you will add a per-group statistic to every original row.2 min readgroupby with agg and know that unstack moves an index level into columns. pivot_table is a groupby whose result is laid out as a grid, with one grouping key down the side and another across the top.2 min read