--- layout: jupyter-notebook-v4.6.3 ---
import pandas as pd import matplotlib.pyplot as plt
header = ['col1', 'col2', 'col3', 'col4'] data = [[1,2,3,4],[5,6,7,8],[9,10,11,12]]
df = pd.DataFrame(data, columns=header)
df
plt.plot(df) plt.legend(df.columns) plt.show()