def get_map(self, create_html=True):
        """Strike data should be a pd.DF from the WWLN data files read by
        read_WWLN()"""
        strike_data = self.df
        num_rows = len(self.df)
        if num_rows > 1000:
            print("Warning, you have requested lots of data be mapped." /
                  " Limiting your request to the first 1,000 rows" /
                  " as this is currently only a preview feature.")
            strike_data = self.df[0:1000]
        m = folium.Map(location=[0.0, 0.01], zoom_start=2)
        marker_cluster = folium.MarkerCluster().add_to(m)
        for event in strike_data.index:
            self.add_to_map(map_obj=m,
                            date_time=strike_data.dt[event],
                            cluster_obj=marker_cluster,
                            lat=strike_data.geometry[event].y,
                            lon=strike_data.geometry[event].x,
                            key=event)
        if create_html:
            data_date = strike_data.dt[0].split()[0]
            m.save('map_{0}.html'.format(data_date))
        return m
def get_map ( self , create_html = True ) : strike_data = self . df num_rows = len ( self . df ) if num_rows > 1000 : print ( "Warning, you have requested lots of data be mapped." / " Limiting your request to the first 1,000 rows" / " as this is currently only a preview feature." ) strike_data = self . df [ 0 : 1000 ] m = folium . Map ( location = [ 0.0 , 0.01 ] , zoom_start = 2 ) marker_cluster = folium . MarkerCluster ( ) . add_to ( m ) for event in strike_data . index : self . add_to_map ( map_obj = m , date_time = strike_data . dt [ event ] , cluster_obj = marker_cluster , lat = strike_data . geometry [ event ] . y , lon = strike_data . geometry [ event ] . x , key = event ) if create_html : data_date = strike_data . dt [ 0 ] . split ( ) [ 0 ] m . save ( 'map_{0}.html' . format ( data_date ) ) return m
Strike data should be a pd.DF from the WWLN data files read by
        read_WWLN()