This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from numpy.random import rand | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
# 2 columns produces an array of 2 matplotlib.axes.AxesSubplot objects | |
df2 = pd.DataFrame(rand(10,2), columns=['Col1', 'Col2'] ) | |
df2['X'] = pd.Series(['A','B','A','B','A','B','A','B','A','B']) | |
#1 column produces a single matplotlib.axes.AxesSubplot object | |
df1 = pd.DataFrame(rand(10), columns=['Col1'] ) |