There are several built-in plot types in pandas. Most of these are statistical plots by nature. Some examples of built-in plot types are given below:

  • df.plot.area
  • df.plot.bar
  • df.plot.barh
  • df.plot.hist
  • df.plot.line
  • df.plot.scatter
  • df.plot.box
  • df.plot.hexbin
  • df.plot.kde
  • df.plot.density
  • df.plot.pie

We can also, instead of using the methods above, call df.plot(kind='hist') and replace the kind argument with any of the key terms shown in the list above (like 'box', 'barh', and so on).

Let’s go through these plots one by one using our Data Frames df1 and df2.

Get hands-on with 1400+ tech skills courses.