my_example2.py

Here is a plot example

## Lets create some data pandas dataframes have a html representation, and this is captured:

import pandas as pd

df = pd.DataFrame({'col1': [10,20,30],
                   'col2': [40,50,60]})
print( df )
   col1  col2
0    10    40
1    20    50
2    30    60

## Lets plot the data

ax = df.plot(x='col1', y='col2', kind='line', title='col1 vs col2')
col1 vs col2

Total running time of the script: (0 minutes 0.499 seconds)

Gallery generated by Sphinx-Gallery