import pandas as pd import numpy as np %pylab inline figsize(5, 5) x = np.random.normal(0, 10, 10000) y = np.random.normal(0, 10, 10000) df = pd.DataFrame( { 'x' : x, 'y' : y } ) df['y'].hist(bins=30) df.head(10) df.plot(x='x', y='y', style='o', alpha=.02) plt.hexbin(df['x'], df['y'], bins='log', gridsize=50, cmap=plt.cm.hot) df = pd.read_csv('taxirides.csv') df.head(5) figsize(15, 15) df.plot(x='PICKUP_LONG', y='PICKUP_LAT', style='o', alpha=.02) plt.hexbin(df['PICKUP_LONG'], df['PICKUP_LAT'], bins='log', gridsize=400, cmap=plt.cm.hot)