# plt.axes() # plt.figure(2) df.Longitude.hist(bins=300 ) # plt.figure(3) df.Latitude.hist(bins=1000) ships = data.groupby(u'MMSI') # plt.figure(4) df.plot(kind='hexbin', x='Latitude', y='Longitude', gridsize=75) # ships() loc = (lon[0],lat[0]) print gs.elevation([ ( 90.000000000001,-170.000000000001)]) print gs.elevation([ loc ]) print data ''' 60]: ax = df.plot(kind='scatter', x='a', y='b', ....: color='DarkBlue', label='Group 1'); ....: In [61]: df.plot(kind='scatter', x='c', y='d', ....: color='DarkGreen', label='Group 2', ax=ax); ''' '''
def get_dock_elevation(dock): # from google api dock.depth = gm.elevation((dock.lat, dock.lon))[0]['elevation'] return dock.depth