0% found this document useful (0 votes)
24 views1 page

Ploteo

Uploaded by

Benjamin Moran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views1 page

Ploteo

Uploaded by

Benjamin Moran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

    + -


02:50

Data Visualization with Python

Cheat Sheet : Plotting with Matplotlib using Pandas


Plot Type Description Pandas Function Example Visual

DataFrame.plot.line()
Line Plot Shows trends and changes over time df.plot(x=’year’, y=’sales’, kind=’line’)
DataFrame.plot(kind = ‘line’)

DataFrame.plot.area()
Area Plot Displays data series as filled areas, showing the relationship between them df.plot(kind='area')
DataFrame.plot(kind = ‘area’)

Series.plot.hist() s.plot(kind='hist', bins=10)


Histogram Displays bars representing the data count in each interval/bin
Series.plot(kind = ‘hist’, bins = n) df[‘age’].plot(kind='hist', bins=10)

DataFrame.plot.bar()
Bar Chart Displays data using rectangular bars df.plot(kind='bar')
DataFrame.plot(kind = ‘bar’)

You might also like