use pandas dataframe tutorial code example
Example 1: pandas python tutorial
purchases.loc['June']
Example 2: pandas python tutorial
purchases = pd.DataFrame(data)
purchases
purchases.loc['June']
purchases = pd.DataFrame(data)
purchases