Visualize Pandas Data Easily With Matplotlib

Tim Kamanin
teachmymachine
Published in
1 min readSep 13, 2017

Building a Matplotlib graph from your Pandas DataFrame is as easy as calling plot() method on your data:

data.plot(kind=”bar”, x=”years”, y=”income”)

, where:

  • x is name of a data column you want to use for X axis
  • y is name of a data column you want to use for Y axis

It’s unbelievably painless!

More info on plot() method can be found here: https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.plot.html

--

--