Loading tutorials
Series and on a DataFrame, but the result differs. This chapter covers what these objects are, which one you get when you select a column, and what to check before counting anything. The later chapters o5 min readNaN or None. The chapter covers what count returns, how it differs from len, size and value_counts, and which values it treats as missing.6 min readdf["name"]. It covers the call you will use most often when exploring a column: Series.value_counts().4 min readvalue_counts as covered in the previous chapter. It focuses on the normalize argument. It also covers the denominator that normalize uses, which changes when missing values are present.4 min readvalue_counts on it. Here you will learn how pandas orders the output of value_counts. You will also learn how to change that order and how to make the order reproducible.4 min readdf["col"], and read basic NumPy-style output. You will learn what Series.unique() returns, how it orders and treats missing values, and which tools to use when unique is not enough.4 min readSeries.nunique answers the question "how many different values does this column hold?" It returns a single integer. This chapter assumes you can build a DataFrame, select a column, and have seen value_counts and unique. It covers how nunique treats missing values, how it differs from count4 min readduplicated, which flags repeated rows and is the detection step that comes before removal. Here you will learn how drop_duplicates decides which rows to remove, w4 min readSeries.value_counts. You will count how often each combination of values occurs across several columns, and you will learn how that count treats missing values, ordering, and proportions.5 min readgroupby, and how size, count and nunique differ. It assumes you can build a DataFrame, select a column, and know that pandas marks missing values as NaN or None. It also assumes you have read how value_counts and nunique treat miss4 min readnunique and unique inside a groupby. It assumes you have read the earlier chapters on count, nunique and groupby().size(). You should be able to create a DataFrame, select a column, and call groupby on it.5 min readvalue_counts, missing values, and groupby counting.4 min readvalue_counts, how missing values behave in counts, and how to select a column from a DataFrame. Those are covered in earlier chapters.5 min readcategory dtype. It assumes you know value_counts, unique, nunique, groupby(...).size() and how missing values are treated, all covered in earlier chapters. The main new point is that a categorical column remembers its f5 min read