image_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

uber_data = pd.read_csv('../input/uber-raw-data-janjune-15.csv')

uber_data.shape

Month = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun']
Index = [0, 1, 2, 3, 4, 5]
Monthly_pickup = uber_data.groupby(['Month']).size()
plt.xticks(Index, Month)

month = ['01', '02', '03', '04', '05', '06']
idx = [0, 7, 14, 21, 27]
def daily_pickup_plot(month):
    plot_data = uber_data[uber_data['Month'] == month]
    plot_data = plot_data.groupby(['Date']).size()
    plot_data.plot(kind='bar', rot=45)
    plt.xlabel('')
    plt.xticks(idx, plot_data.index[idx])
plt.figure(1, figsize=(12, 24))
for i in range(0, 6):
    plt.subplot(3, 2, i + 1)
    daily_pickup_plot(month[i])
    plt.ylim(0, 140000)
    plt.title('Daily Pickup of ' + Month[i])