Section outline

        • What are qualitative data?

          Qualitative, or categorical, data, in contrast to quantitative data, refers to all data that are not numbers. This can include strings (for example, names) or booleans (True/False, yes/no, 1/0, etc.).

          Qualitative data can also be plotted using the tools seen previously. However, there is an all-in-one tool that makes it easy to switch between different plot styles.

           

        •  

          The catplot() function allows you to create different types of plots:

          signature catplot


          There are different kinds that we will present:

          tips=sns.load_dataset("tips")
          sns.catplot(tips,x="day", y="total_bill")

          catplot strip

          sns.catplot(tips,x="day", y="total_bill",kind="swarm")

          catplot swarm

          sns.catplot(tips,x="day", y="total_bill",kind="violin")

          catplot violin

          sns.catplot(tips,x="day", y="total_bill",kind="box")

          catplot box

          sns.catplot(tips,x="day", y="total_bill",kind="boxen")

          catplot boxen

          sns.catplot(tips,x="day", y="total_bill",kind="point")

          catplot point

          sns.catplot(tips,x="day", y="total_bill",kind="bar")

          catplot bar

          sns.catplot(tips,x="day",kind="count")

          catplot count


           

          We can use the parameters of the chosen methods. For example, boxplot() has a fill parameter, so it can be specified in the catplot() function.

          sns.catplot(kind="box",data=tips,x="smoker",y="total_bill",fill=False)

          kwargs exemple