Loading tutorials
df["name"]. It shows which counting methods skip missing values and which keep them. A wrong choice here changes your totals without raising an error.1 min readNaN or None.2 min readNone or NaN.2 min readvalue_counts on it. A count of 3 means little until you know the total. A proportion (a fraction of the total) answers that.2 min readvalue_counts on a column and read its output. It covers the ordering rules of that result and how to change them.2 min readSeries.unique, what it returns, and how it treats missing values.2 min readunique returns the distinct values of a column. It builds on how pandas treats missing values in counts.2 min readduplicated. Here you will remove the rows that duplicated flags.2 min readSeries.value_counts. Here you count how often a combination of values occurs across several columns.2 min readNaN or None. Both size and count work on groups, but they answer different questions.2 min readgroupby with a single key. You have already seen nunique on a whole column. Here you apply it inside groups and compare it with size and count.2 min readvalue_counts and how pandas treats missing values. pd.crosstab counts how often each pair of values from two columns occurs. It lays the counts out as a table, with one column's values down the side and the other's across the top.2 min readvalue_counts counts each distinct value, and you know that missing values are skipped by default.2 min readvalue_counts, unique, nunique and groupby(...).size() on ordinary columns. It covers how those calls change when a column has the category dtype.2 min read